Skip to content

Commit

Permalink
Update db-connector.js
Browse files Browse the repository at this point in the history
  • Loading branch information
zeteticl committed Dec 26, 2023
1 parent 2e75bbc commit ef70756
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/db-connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const restartMongo = schedule.scheduleJob(restartTime, async () => {
});

async function restart() {
console.log('Restarting MongoDB...');
await mongoose.connection.close();
await connect();
}
Expand Down

0 comments on commit ef70756

Please sign in to comment.