Skip to content

Commit da1c913

Browse files
fix: wrap sendgrid call with try-catch (#284)
1 parent 559d9fb commit da1c913

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/server/src/app/notifications/notifications.service.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ export class NotificationsService {
3030
},
3131
};
3232

33-
await sgMail.send(mailData);
33+
try {
34+
await sgMail.send(mailData);
35+
} catch (error) {
36+
this.logger.error(error);
37+
}
3438
}
3539
}

0 commit comments

Comments
 (0)