Don't schedule cancelled workflow reminders (#8096)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
pull/8084/head
Carina Wollendorfer 2023-04-06 09:45:01 +02:00 committed by GitHub
parent 4b0d22655d
commit 7b5e2c8bab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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(),
},