Comprehensive workflow reminder management for booking lifecycle events#6
Comprehensive workflow reminder management for booking lifecycle events#6zaibkhan wants to merge 1 commit into
Conversation
…re still sent (#7232) * small UI fix * fix cancelling scheduled emails * improve comments * delete reminders for rescheduled bookings * add migration file * cancel rescheduled bookings immediately * remove immediate delete for request reschedule --------- Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Codoki PR ReviewSummary: Harden reminder cancellations, await async ops, filter SendGrid refs Issues (Critical & High only)
Showing top 2 issues. Critical: 0, High: 2. See inline suggestions for more. Key Feedback (click to expand)
Confidence: 3/5 — Needs work before merge (2 high · status: Requires changes) React with 👍 or 👎 if you found this review useful. |
| }, | ||
| }); | ||
|
|
||
| //cancel reminders for cancelled/rescheduled bookings that are scheduled within the next hour |
There was a problem hiding this comment.
| //cancel reminders for cancelled/rescheduled bookings that are scheduled within the next hour | |
| ```suggestion | |
| const remindersToCancel = await prisma.workflowReminder.findMany({ | |
| where: { | |
| cancelled: true, | |
| referenceId: { not: null }, | |
| scheduledDate: { lte: dayjs().add(1, "hour").toISOString() }, | |
| }, | |
| }); |
No description provided.