Update bookingReminder.ts (#3007)
parent
33a4bb797d
commit
3a2224a4e4
|
@ -29,6 +29,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||
createdAt: {
|
||||
lte: dayjs().add(-interval, "minutes").toDate(),
|
||||
},
|
||||
// Only send reminders if the event hasn't finished
|
||||
endTime: { gte: new Date() },
|
||||
},
|
||||
select: {
|
||||
...bookingMinimalSelect,
|
||||
|
|
Loading…
Reference in New Issue