fix(app): system crash to discord and log now properly happen at a crash

This commit is contained in:
2025-09-03 19:28:49 -05:00
parent 3704e4d6fc
commit 9ea1e04472

View File

@@ -119,6 +119,7 @@ const main = async () => {
if (!process.env.WEBHOOK_URL) {
// await sendEmail(emailData);
} else {
log.fatal({ stack: err.stack }, err.message);
await sendNotify({
module: "system",
subModule: "fatalCrash",