Skip to content

Commit 2121c84

Browse files
committed
fix lint issues
1 parent d33e99e commit 2121c84

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/providers/email/nodemailer/nodemailer.provider.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export class NodemailerProvider implements Provider<NodemailerNotification> {
5858
...message.options,
5959
from: fromEmail || '',
6060
to: receivers,
61-
subject: message.options?.subject || message.subject,
62-
text: message.options?.text || message.body,
61+
subject: message.options?.subject ?? message.subject,
62+
text: message.options?.text ?? message.body,
6363
html: message.options?.html,
6464
attachments: message.options?.attachments,
6565
};
@@ -70,8 +70,8 @@ export class NodemailerProvider implements Provider<NodemailerNotification> {
7070
...message.options,
7171
from: fromEmail || '',
7272
to: receiver.id,
73-
subject: message.options?.subject || message.subject,
74-
text: message.options?.text || message.body,
73+
subject: message.options?.subject ?? message.subject,
74+
text: message.options?.text ?? message.body,
7575
html: message.options?.html,
7676
attachments: message.options?.attachments,
7777
};

0 commit comments

Comments
 (0)