From ef70756301e120452786e5b3b691fa45f347adc8 Mon Sep 17 00:00:00 2001 From: Sad Date: Tue, 26 Dec 2023 22:57:34 +0800 Subject: [PATCH] Update db-connector.js --- modules/db-connector.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/db-connector.js b/modules/db-connector.js index 85cb3e9c..ee6f1be1 100644 --- a/modules/db-connector.js +++ b/modules/db-connector.js @@ -41,6 +41,7 @@ const restartMongo = schedule.scheduleJob(restartTime, async () => { }); async function restart() { + console.log('Restarting MongoDB...'); await mongoose.connection.close(); await connect(); }