revert changes to mongoose config

This commit is contained in:
Matteo Pagliazzi
2016-05-12 21:44:57 +02:00
parent f1f18859de
commit c7fb69b530
+1 -1
View File
@@ -13,7 +13,7 @@ let mongooseOptions = !IS_PROD ? {} : {
replset: { socketOptions: { keepAlive: 1, connectTimeoutMS: 30000 } },
server: { socketOptions: { keepAlive: 1, connectTimeoutMS: 30000 } },
};
let db = mongoose.connect(nconf.get('NODE_DB_URI'), {}, (err) => {
let db = mongoose.connect(nconf.get('NODE_DB_URI'), mongooseOptions, (err) => {
if (err) throw err;
logger.info('Connected with Mongoose.');
});