Skip to content

Commit

Permalink
feat: added more notifications necessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Monta authored and Monta committed Nov 21, 2023
1 parent 8c2c291 commit a52838c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ export default class EmailPusherClass
{ subject, html: html_body, text: text_body }: EmailPusherPayload,
): Promise<void> {
try {
this.logger.info("sending email");
if (!html_body || !text_body || !subject || !to) {
this.logger.error("invalid email");
throw Error("invalid email");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
subject,
html,
Expand Down

0 comments on commit a52838c

Please sign in to comment.