✌️
This commit is contained in:
parent
c4e517ab15
commit
19e12bf5cf
19 changed files with 28 additions and 29 deletions
|
@ -1,4 +1,4 @@
|
|||
const mongo = require('mongoskin');
|
||||
import * as mongo from 'monk';
|
||||
|
||||
import config from '../conf';
|
||||
|
||||
|
@ -6,6 +6,6 @@ const uri = config.mongodb.user && config.mongodb.pass
|
|||
? `mongodb://${config.mongodb.user}:${config.mongodb.pass}@${config.mongodb.host}:${config.mongodb.port}/${config.mongodb.db}`
|
||||
: `mongodb://${config.mongodb.host}:${config.mongodb.port}/${config.mongodb.db}`;
|
||||
|
||||
const db = mongo.db(uri, { native_parser: true });
|
||||
const db = mongo(uri);
|
||||
|
||||
export default db;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue