Skip to content

Commit

Permalink
Email
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 2, 2023
1 parent 62660bd commit 91a16c0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@midday/location": "workspace:*",
"@midday/ui": "workspace:*",
"@vercel/analytics": "^1.1.1",
"next": "14.0.2",
"next": "14.0.3",
"next-international": "^1.1.4",
"next-themes": "^0.2.1",
"react": "18.2.0",
Expand Down
Binary file modified bun.lockb
Binary file not shown.
3 changes: 3 additions & 0 deletions packages/email/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@
},
"devDependencies": {
"typescript": "^5.3.2"
},
"overrides": {
"@react-email/render": "0.0.9"
}
}
5 changes: 3 additions & 2 deletions packages/jobs/src/transactions/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ client.defineJob({
);

if (notificationEvents?.length) {
triggerBulk(notificationEvents.flat());
await io.logger.log(
`Sending notifications: ${notificationEvents.length}`
);
triggerBulk(notificationEvents.flat());
}

const emailEvents = await Promise.all(
Expand Down Expand Up @@ -108,8 +108,9 @@ client.defineJob({
);

if (emailEvents?.length) {
await io.logger.log(`Sending emails: ${emailEvents.length}`);
triggerBulk(emailEvents);
await io.logger.log(`Sending emails: ${emailEvents.length}`);
await io.logger.log(`Emails: ${JSON.stringify(emailEvents, null, 2)}`);
}
},
});

0 comments on commit 91a16c0

Please sign in to comment.