Skip to content

Commit

Permalink
patch: typecasted SMTP_PORT to number in nodemailer
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Dec 29, 2023
1 parent 7a0be5d commit 0b93d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/mail/services/mail.nodemailer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class MailService implements IMailService {
constructor() {
this.transporter = nodemailer.createTransport({
host: process.env.SMTP_HOST,
port: process.env.SMTP_PORT,
port: Number(process.env.SMTP_PORT),
secure: true,
auth: {
user: process.env.EMAIL,
Expand Down

0 comments on commit 0b93d0e

Please sign in to comment.