diff --git a/lib/mongoHandler.js b/lib/mongoHandler.js index 0986744..bcb4849 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) {