diff --git a/bin/database/module.js b/bin/database/module.js index 6cc0a81..5ddea97 100644 --- a/bin/database/module.js +++ b/bin/database/module.js @@ -16,6 +16,7 @@ var methods = {}; mongoose.connect(global['gds'].cfg.mongoose.uri, { useNewUrlParser: true }); +mongoose.set('useFindAndModify', false); global['gds'].db = mongoose.connection;