Skip to content

Commit

Permalink
fix deprecation messages coming from mongodb(server options are moved…
Browse files Browse the repository at this point in the history
… to root level)
  • Loading branch information
cahva committed Jun 2, 2017
1 parent 87afc0b commit 0fcee59
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/mongoHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0fcee59

Please sign in to comment.