Skip to content

Commit

Permalink
Fix process crash after failing to send emails.
Browse files Browse the repository at this point in the history
  • Loading branch information
losfair committed Oct 22, 2021
1 parent 96384c0 commit fb7c758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/notification.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export class NotificationService extends RequestScopeService {
}

try {
this.emailService.send(msg)
await this.emailService.send(msg)
} catch (e) {
// TODO:
console.log("unable to send email:", e)
}
}
}
Expand Down

0 comments on commit fb7c758

Please sign in to comment.