Skip to content

Commit

Permalink
fix(db): mongo flag for version upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Jul 7, 2022
1 parent 806a1df commit d8670fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/backup/backup.js
Expand Up @@ -126,7 +126,7 @@ function runBackup (callback) {

if (!CONNECTION_URI) return process.send({ error: { message: 'Invalid connection uri' } })
const options = {
keepAlive: 0,
keepAlive: false,
connectTimeoutMS: 5000
}
database.init(
Expand Down
2 changes: 1 addition & 1 deletion src/backup/restore.js
Expand Up @@ -134,7 +134,7 @@ function runRestore (file, callback) {
}

const options = {
keepAlive: 0,
keepAlive: true,
connectTimeoutMS: 5000
}
database.init(
Expand Down
2 changes: 1 addition & 1 deletion src/database/index.js
Expand Up @@ -61,7 +61,7 @@ if (!mongoConnectionUri.username) {
if (process.env.TD_MONGODB_URI) CONNECTION_URI = process.env.TD_MONGODB_URI

let options = {
keepAlive: 1,
keepAlive: true,
connectTimeoutMS: 30000
}

Expand Down

0 comments on commit d8670fd

Please sign in to comment.