This commit is contained in:
2024-11-21 18:27:45 +01:00
parent f6c8b2ee8c
commit e8c66e65e6
4 changed files with 58 additions and 41 deletions

View File

@@ -18,11 +18,8 @@ export class EmailService {
// Add to queue instead of sending directly
await emailQueue.add('send-email', email, {
removeOnComplete: true,
removeOnFail: 1000
// removeOnFail: 1000
})
// Log for development
await Bun.write('emails.log', JSON.stringify(email) + '\n', { append: true })
}
async getQueueStatus() {