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, }); }