fix: cancel workflows on cancel booking (#17871)

* feat: cancel scheduled email from sendGrid while cancelling the booking

* fix: remove deleteScheduledSend in scheduledEmailReminder cron api

* fix: use cancelScheduledEmailSend

* chore: remove cancelling email workflow in deleteScheduledEmailReminder

* refactor: bring back deleteScheduleSend

* fix: get only past reminders
This commit is contained in:
Vishnu
2025-01-07 00:06:57 -05:00
committed by GitHub
parent 6178092878
commit 29bbada77a
@@ -84,7 +84,7 @@ export async function getAllRemindersToDelete(): Promise<RemindersToDeleteType[]
method: WorkflowMethods.EMAIL,
cancelled: true,
scheduledDate: {
lte: dayjs().toISOString(),
lt: dayjs().toISOString(),
},
};