release/2024-10-11: Hotfix
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user