✌️
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user