Don't schedule cancelled workflow reminders (#8096)

Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
Carina WollendorferandCarinaWolli authored and GitHub committed 2023-04-06 13:15:01 +05:30
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(),
},