make sure to also trigger when cancelled is null (#8992)
Co-authored-by: CarinaWolli <wollencarina@gmail.com>pull/8996/head
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,
|
||||
|
|
Loading…
Reference in New Issue