Skip to content

Commit

Permalink
chore: fix ts
Browse files Browse the repository at this point in the history
  • Loading branch information
moroine committed Nov 12, 2024
1 parent 9a49a53 commit 49af027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/common/services/mailer/mailer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function initMailer() {
const needsAuthentication = !!settings.auth.user;
// @ts-expect-error
transporter = nodemailer.createTransport(needsAuthentication ? settings : omit(settings, ["auth"]));
transporter.use("compile", htmlToText());
transporter?.use("compile", htmlToText());
}

async function sendEmailMessage(template: ITemplate, emailEvent: IEventBalEmail | null): Promise<string | null> {
Expand Down

0 comments on commit 49af027

Please sign in to comment.