release/2024-10-11: Hotfix

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-10-12 12:26:30 -04:00
parent 87d3ceb408
commit 05cc4dd188

View File

@@ -39,12 +39,12 @@ if (process.env.NODE_ENV !== "development") {
// Handling uncaught exceptions // Handling uncaught exceptions
process.on("uncaughtException", async (err) => { process.on("uncaughtException", async (err) => {
await tasksEmailQueueCleanup(); await tasksEmailQueueCleanup();
throw err; process.exit(1);
}); });
// Handling unhandled promise rejections // Handling unhandled promise rejections
process.on("unhandledRejection", async (reason, promise) => { process.on("unhandledRejection", async (reason, promise) => {
await tasksEmailQueueCleanup(); await tasksEmailQueueCleanup();
throw reason; process.exit(1);
}); });
} }