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: {
|
where: {
|
||||||
method: WorkflowMethods.EMAIL,
|
method: WorkflowMethods.EMAIL,
|
||||||
scheduled: false,
|
scheduled: false,
|
||||||
cancelled: false,
|
|
||||||
scheduledDate: {
|
scheduledDate: {
|
||||||
lte: dayjs().add(72, "hour").toISOString(),
|
lte: dayjs().add(72, "hour").toISOString(),
|
||||||
},
|
},
|
||||||
|
OR: [{ cancelled: false }, { cancelled: null }],
|
||||||
},
|
},
|
||||||
include: {
|
include: {
|
||||||
workflowStep: true,
|
workflowStep: true,
|
||||||
|
|
Loading…
Reference in New Issue