Skip to content

Scheduling infrastructure for absolutely everyone.

Don't schedule cancelled workflow reminders (#8096)

Carina Wollendorfer7b5e2c8baba7
diff --git a/packages/features/ee/workflows/api/scheduleEmailReminders.ts b/packages/features/ee/workflows/api/scheduleEmailReminders.ts
index 035bdc96328..ffe0f7a61d7 100644
--- a/packages/features/ee/workflows/api/scheduleEmailReminders.ts
+++ b/packages/features/ee/workflows/api/scheduleEmailReminders.ts
@@ -101,6 +101,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
where: {
method: WorkflowMethods.EMAIL,
scheduled: false,
+ cancelled: false,
scheduledDate: {
lte: dayjs().add(72, "hour").toISOString(),
},