mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-15 10:42:23 +00:00
fix mongoose options
This commit is contained in:
parent
6d0917964b
commit
8bd3ef6f24
2 changed files with 2 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ let improveRepl = (context) => {
|
|||
const mongooseOptions = !isProd ? {} : {
|
||||
keepAlive: 1,
|
||||
connectTimeoutMS: 30000,
|
||||
useMongoClient: true,
|
||||
};
|
||||
mongoose.connect(
|
||||
nconf.get('NODE_DB_URI'),
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ if (MAINTENANCE_MODE !== 'true') {
|
|||
const mongooseOptions = !IS_PROD ? {} : {
|
||||
keepAlive: 120,
|
||||
connectTimeoutMS: 30000,
|
||||
useMongoClient: true,
|
||||
};
|
||||
|
||||
const NODE_DB_URI = nconf.get('IS_TEST') ? nconf.get('TEST_DB_URI') : nconf.get('NODE_DB_URI');
|
||||
|
|
|
|||
Loading…
Reference in a new issue