Skip to content

Commit

Permalink
fix(providers): bug when using nodemailer with SES (#11865)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjudd committed Sep 25, 2024
1 parent 2f8320c commit 181c6b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/providers/nodemailer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ export default function Nodemailer(
text: text({ url, host }),
html: html({ url, host, theme }),
})
const failed = result.rejected.concat(result.pending).filter(Boolean)
const rejected = result.rejected || []
const pending = result.pending || []
const failed = rejected.concat(pending).filter(Boolean)
if (failed.length) {
throw new Error(`Email (${failed.join(", ")}) could not be sent`)
}
Expand Down

0 comments on commit 181c6b8

Please sign in to comment.