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