make sure to also trigger when cancelled is null (#8992)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
pull/8996/head
Carina Wollendorfer 2023-05-19 16:41:44 +02:00 committed by GitHub
parent bfa30aa504
commit e4836ea8f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -102,10 +102,10 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
where: { where: {
method: WorkflowMethods.EMAIL, method: WorkflowMethods.EMAIL,
scheduled: false, scheduled: false,
cancelled: false,
scheduledDate: { scheduledDate: {
lte: dayjs().add(72, "hour").toISOString(), lte: dayjs().add(72, "hour").toISOString(),
}, },
OR: [{ cancelled: false }, { cancelled: null }],
}, },
include: { include: {
workflowStep: true, workflowStep: true,