Don't schedule cancelled workflow reminders (#8096)
Co-authored-by: CarinaWolli <wollencarina@gmail.com>pull/8084/head
parent
4b0d22655d
commit
7b5e2c8bab
|
@ -101,6 +101,7 @@ 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(),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue