From c702f01007ec45b2bc17738b7216f5fe5e1180d9 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Thu, 31 Aug 2023 10:26:14 +1000 Subject: [PATCH] Update DatabaseServer.ts --- src/funcs/DatabaseServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/funcs/DatabaseServer.ts b/src/funcs/DatabaseServer.ts index 75a4886..0aaf772 100644 --- a/src/funcs/DatabaseServer.ts +++ b/src/funcs/DatabaseServer.ts @@ -26,5 +26,5 @@ export default async(client:TClient)=>{ .on('close', ()=>console.log(client.logTime(), `${LogPrefix} MongoDB has closed the connection`)) .on('all', ()=>console.log(client.logTime(), `${LogPrefix} Successfully established a connection to all members`)) .on('fullsetup', ()=>console.log(client.logTime(), `${LogPrefix} Successfully established a connection to Primary server & atleast one member`)) - .on('error', ((err:mongoose.Error)=>console.error(client.logTime(), `${LogPrefix} Encountered an error in MongoDB: ${err.message}`))); + .on('error', (err:mongoose.Error)=>console.error(client.logTime(), `${LogPrefix} Encountered an error in MongoDB: ${err.message}`)); }