Skip to content

Commit

Permalink
🐛 Fix bug with newer versions of mongoose
Browse files Browse the repository at this point in the history
Fixing bug described in Automattic/mongoose#5442
  • Loading branch information
khaosdoctor committed Jul 14, 2017
1 parent a208061 commit 0236276
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/mongo-connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,15 @@ module.exports = function () {

const options = {
useMongoClient: true,
server: {
auto_reconnect: true,
socketOptions: {
keepAlive: 1,
connectTimeoutMS: mongodbConnectionTimeout,
connectTimeoutMS: mongodbConnectionTimeout
},
},
replset: {
socketOptions: {
keepAlive: 1,
connectTimeoutMS: mongodbConnectionTimeout,
},
},
connectTimeoutMS: mongodbConnectionTimeout
}
};

if (mongodbReplicaSet) {
Expand Down

0 comments on commit 0236276

Please sign in to comment.