fix mongoose options

This commit is contained in:
Matteo Pagliazzi
2018-02-03 22:17:10 +01:00
parent 6d0917964b
commit 8bd3ef6f24
2 changed files with 2 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ let improveRepl = (context) => {
const mongooseOptions = !isProd ? {} : {
keepAlive: 1,
connectTimeoutMS: 30000,
useMongoClient: true,
};
mongoose.connect(
nconf.get('NODE_DB_URI'),