Don't schedule cancelled workflow reminders (#8096)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
Carina Wollendorfer
2023-04-06 13:15:01 +05:30
committed by GitHub
co-authored by CarinaWolli
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(),
},