Skip to content

Commit

Permalink
Merge pull request #2 from ignazio-bovo/fix/exit-mail-scheduler-process
Browse files Browse the repository at this point in the history
fix: process exit successfully/unsuccessfully
  • Loading branch information
thesan authored Dec 8, 2023
2 parents 00451d7 + 0fa2329 commit 202adb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mail-scheduler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export async function main() {
main()
.then(() => {
console.log('Email delivery finished')
process.exit(0)
})
.catch((err) => {
console.error('Email delivery failed', err)
process.exit(1)
})

0 comments on commit 202adb1

Please sign in to comment.