Skip to content

Commit

Permalink
Don't crash the app if db not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Jan 30, 2023
1 parent 4f4bd59 commit 017cab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const connectToDatabase = async (attempt = 0) => {
error: err.stack,
})

return process.exit(1)
return
}
logger.info(
`Connection to database failed! Attempt ${attempt} of ${DB_CONNECTION_RETRY_LIMIT}`,
Expand Down

0 comments on commit 017cab3

Please sign in to comment.