1
0
Fork 0

mongoose findOneAndUpdate deprecation fix

This commit is contained in:
Ruben Meyer 2019-09-03 00:18:49 +02:00
parent 222224ee4c
commit 2057e68d82
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ var methods = {};
mongoose.connect(global['gds'].cfg.mongoose.uri, {
useNewUrlParser: true
});
mongoose.set('useFindAndModify', false);
global['gds'].db = mongoose.connection;