🪵 Notifications necessary log (#267)
This commit is contained in:
@@ -116,7 +116,9 @@ export default class EmailPusherClass
|
|||||||
{ subject, html: html_body, text: text_body }: EmailPusherPayload,
|
{ subject, html: html_body, text: text_body }: EmailPusherPayload,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
try {
|
try {
|
||||||
|
this.logger.info("sending email");
|
||||||
if (!html_body || !text_body || !subject || !to) {
|
if (!html_body || !text_body || !subject || !to) {
|
||||||
|
this.logger.error("invalid email");
|
||||||
throw Error("invalid email");
|
throw Error("invalid email");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export class DocumentsEngine implements Initializable {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
logger.info(`Sending email notification to ${receiver.email_canonical}`);
|
||||||
await globalResolver.platformServices.emailPusher.send(receiver.email_canonical, {
|
await globalResolver.platformServices.emailPusher.send(receiver.email_canonical, {
|
||||||
subject,
|
subject,
|
||||||
html,
|
html,
|
||||||
|
|||||||
Reference in New Issue
Block a user