We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08e7dfb commit 11c02f8Copy full SHA for 11c02f8
libraries/nestjs-libraries/src/emails/resend.provider.ts
@@ -14,14 +14,18 @@ export class ResendProvider implements EmailInterface {
14
emailFromAddress: string,
15
replyTo?: string
16
) {
17
- const sends = await resend.emails.send({
18
- from: `${emailFromName} <${emailFromAddress}>`,
19
- to,
20
- subject,
21
- html,
22
- ...(replyTo && { reply_to: replyTo }),
23
- });
+ try {
+ const sends = await resend.emails.send({
+ from: `${emailFromName} <${emailFromAddress}>`,
+ to,
+ subject,
+ html,
+ ...(replyTo && { reply_to: replyTo }),
24
+ });
25
- return sends;
26
+ return sends;
27
+ } catch (err) {
28
+ console.log(err);
29
+ }
30
}
31
0 commit comments