Skip to content

Commit

Permalink
fix: wrap sendgrid call with try-catch
Browse files Browse the repository at this point in the history
  • Loading branch information
arielweinberger committed Feb 3, 2024
1 parent 559d9fb commit 00648e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/server/src/app/notifications/notifications.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export class NotificationsService {
},
};

await sgMail.send(mailData);
try {
await sgMail.send(mailData);
} catch (error) {
this.logger.error(error);
}
}
}

0 comments on commit 00648e7

Please sign in to comment.