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(