Skip to content

Commit

Permalink
await the flush
Browse files Browse the repository at this point in the history
  • Loading branch information
konstrybakov committed Jul 25, 2024
1 parent bb0848b commit 41ea531
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/api/email/jobs/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export const GET = async () => {
} finally {
logger.info('Finished `send-email` cron job')

logger.flush()
logger.flush(() => {
console.log('Logger flushed')
})
}
}

0 comments on commit 41ea531

Please sign in to comment.