mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
chore(deprecations): clean out some warnings
This commit is contained in:
@@ -23,15 +23,14 @@ export function getDevelopmentConnectionUrl (originalConnectionUrl) {
|
||||
}
|
||||
|
||||
export function getDefaultConnectionOptions () {
|
||||
// with keepAlive deprecated, we don't need a separate set of production options
|
||||
// Keeping the structure here in case the distinction is useful later
|
||||
const commonOptions = {
|
||||
useNewUrlParser: true,
|
||||
useUnifiedTopology: true,
|
||||
};
|
||||
|
||||
return !IS_PROD ? commonOptions : {
|
||||
// See https://mongoosejs.com/docs/connections.html#keepAlive
|
||||
keepAlive: true,
|
||||
keepAliveInitialDelay: 300000,
|
||||
...commonOptions,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user