Don't schedule cancelled workflow reminders (#8096)
Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
1 parent
4b0d22655d
commit
7b5e2c8bab
1 file changed
+1
@@ -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(),
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user