From 2057e68d82fc9ea9beb318fe2c013a19ad53ed2f Mon Sep 17 00:00:00 2001 From: Ruben Meyer <46384706+rxbnDE@users.noreply.github.com> Date: Tue, 3 Sep 2019 00:18:49 +0200 Subject: [PATCH] mongoose findOneAndUpdate deprecation fix --- bin/database/module.js | 1 + 1 file changed, 1 insertion(+) 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;