fix: canceling workflow reminders (#21416)

* fix deleting reminders

* schedule reminders if iffy is disabled

* fix unit test

* clean up code

---------

Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
Carina WollendorferandCarinaWolli authored and GitHub committed 2025-05-21 12:35:31 +00:00
1 parent 21a4711f07
commit 4ff366cd99
3 files changed
+89 -79

No files matched your search

@@ -164,8 +164,9 @@ export const activateEventTypeHandler = async ({ ctx, input }: ActivateEventType
const remindersToDelete = await prisma.workflowReminder.findMany({
where: {
booking: {
eventTypeId: eventTypeId,
userId: ctx.user.id,
eventTypeId: {
in: Array.from(activeOnEventTypes.keys()),
},
},
workflowStepId: {
in: eventTypeWorkflow.steps.map((step) => {