From 0fcee5998b83db318fd14a47842eb0c34aa9da70 Mon Sep 17 00:00:00 2001 From: Markku Virtanen Date: Fri, 2 Jun 2017 15:28:03 +0300 Subject: [PATCH] fix deprecation messages coming from mongodb(server options are moved to root level) --- lib/mongoHandler.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/mongoHandler.js b/lib/mongoHandler.js index bbc58f4..ffb5dc3 100644 --- a/lib/mongoHandler.js +++ b/lib/mongoHandler.js @@ -175,10 +175,8 @@ MongoStore.prototype.initialise = function(resourceConfig) { self.resourceConfig = resourceConfig; self.relationshipAttributeNames = MongoStore._getRelationshipAttributeNames(resourceConfig.attributes); mongodb.MongoClient.connect(self._config.url, { - server: { - reconnectTries: 999999999, - reconnectInterval: 5000 - } + reconnectTries: 999999999, + reconnectInterval: 5000 }).then(function(db) { self._db = db; self._db.on("close", function(err) {