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