Merged in release/2024-10-11 (pull request #1814)

release/2024-10-11: Hotfix
This commit is contained in:
Dave Richer
2024-10-12 16:28:40 +00:00

View File

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