From 97f93a1830761437118863372108df810ce9977a Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Thu, 9 Apr 2026 21:14:36 -0500 Subject: [PATCH] refactor(reprints): changes the module and submodule around to be more accurate --- .../notification/notification.reprintLabels.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/backend/notification/notification.reprintLabels.ts b/backend/notification/notification.reprintLabels.ts index 407f5c5..4e82dd7 100644 --- a/backend/notification/notification.reprintLabels.ts +++ b/backend/notification/notification.reprintLabels.ts @@ -90,13 +90,22 @@ const reprint = async (data: any, emails: string) => { }); if (!sentEmail?.success) { + // sendEmail({ + // email: "Blake.matths@alpla.com", + // subject: `${os.hostname()} failed to run ${data[0]?.name}.`, + // template: "serverCrash", + // context: { + // error: sentEmail?.data, + // plant: `${os.hostname()}`, + // }, + // }); return returnFunc({ success: false, level: "error", - module: "email", - subModule: "notification", + module: "notification", + subModule: "email", message: `${l[0].name} failed to send the email`, - data: [sentEmail], + data: [sentEmail?.data], notify: true, }); }