From 84ce009310b2ddd5daf5af25a38ca78c7469ebff Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Fri, 14 Mar 2025 07:34:43 -0500 Subject: [PATCH] fix(crash alerts): remmoved close sql as it spammed bad when we couldnt connect --- server/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/index.ts b/server/index.ts index f92d15d..5fc338d 100644 --- a/server/index.ts +++ b/server/index.ts @@ -106,25 +106,25 @@ app.use("*", serveStatic({path: "./frontend/dist/index.html"})); // Handle app exit signals process.on("SIGINT", async () => { console.log("\nGracefully shutting down..."); - await closePool(); + //await closePool(); process.exit(0); }); process.on("SIGTERM", async () => { console.log("Received termination signal, closing database..."); - await closePool(); + //await closePool(); process.exit(0); }); process.on("uncaughtException", async (err) => { console.log("Uncaught Exception:", err); - await closePool(); + //await closePool(); process.exit(1); }); process.on("beforeExit", async () => { console.log("Process is about to exit..."); - await closePool(); + //await closePool(); }); serve(