Skip to content

Commit

Permalink
Merge pull request #46 from cahva/fix-mongodb-deprecatemessages
Browse files Browse the repository at this point in the history
Fix deprecated messages from mongodb
  • Loading branch information
pmcnr-hx authored Sep 25, 2017
2 parents 4d4e78f + 0fcee59 commit eaf0c47
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 eaf0c47

Please sign in to comment.