1
0
Fork 0

mongoose findOneAndUpdate deprecation fix

master
Ruben Meyer 3 years ago
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…
Cancel
Save