mirror of
https://github.com/documenso/documenso.git
synced 2025-11-17 18:21:32 +10:00
feat: update reminder email jobs to support multiple intervals; remove monthly and weekly jobs
This commit is contained in:
@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user