Skip to content

Scheduling infrastructure for absolutely everyone.

make sure to also trigger when cancelled is null (#8992)

Carina Wollendorfere4836ea8f374
diff --git a/packages/features/ee/workflows/api/scheduleEmailReminders.ts b/packages/features/ee/workflows/api/scheduleEmailReminders.ts
index fb27e55bd51..919e98fd3fe 100644
--- a/packages/features/ee/workflows/api/scheduleEmailReminders.ts
+++ b/packages/features/ee/workflows/api/scheduleEmailReminders.ts
@@ -102,10 +102,10 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
where: {
method: WorkflowMethods.EMAIL,
scheduled: false,
- cancelled: false,
scheduledDate: {
lte: dayjs().add(72, "hour").toISOString(),
},
+ OR: [{ cancelled: false }, { cancelled: null }],
},
include: {
workflowStep: true,