refactor(reprints): changes the module and submodule around to be more accurate
This commit is contained in:
@@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user