feat: update reminder email jobs to support multiple intervals; remove monthly and weekly jobs

This commit is contained in:
Ephraim Atta-Duncan
2025-04-15 09:37:37 +00:00
parent 7c234edf87
commit 8343f03bd2
5 changed files with 21 additions and 59 deletions

View File

@ -18,7 +18,13 @@ export const SEND_DAILY_REMINDER_EMAIL_JOB = {
await handler.run({
io,
interval: DocumentReminderInterval.DAILY,
intervals: [
DocumentReminderInterval.DAILY,
DocumentReminderInterval.EVERY_3_DAYS,
DocumentReminderInterval.WEEKLY,
DocumentReminderInterval.EVERY_2_WEEKS,
DocumentReminderInterval.MONTHLY,
],
});
},
} as const satisfies JobDefinition<typeof SEND_DAILY_REMINDER_EMAIL_JOB_ID>;