mongoose findOneAndUpdate deprecation fix
This commit is contained in:
parent
222224ee4c
commit
2057e68d82
@ -16,6 +16,7 @@ var methods = {};
|
||||
mongoose.connect(global['gds'].cfg.mongoose.uri, {
|
||||
useNewUrlParser: true
|
||||
});
|
||||
mongoose.set('useFindAndModify', false);
|
||||
|
||||
global['gds'].db = mongoose.connection;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user