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

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
Carina Wollendorfer
2023-05-19 14:41:44 +00:00
committed by GitHub
co-authored by CarinaWolli
parent bfa30aa504
commit e4836ea8f3
@@ -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,