refactor(reprints): changes the module and submodule around to be more accurate

This commit is contained in:
2026-04-09 21:14:36 -05:00
parent 635635b356
commit 97f93a1830

View File

@@ -90,13 +90,22 @@ const reprint = async (data: any, emails: string) => {
}); });
if (!sentEmail?.success) { 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({ return returnFunc({
success: false, success: false,
level: "error", level: "error",
module: "email", module: "notification",
subModule: "notification", subModule: "email",
message: `${l[0].name} failed to send the email`, message: `${l[0].name} failed to send the email`,
data: [sentEmail], data: [sentEmail?.data],
notify: true, notify: true,
}); });
} }