Update bookingReminder.ts (#3007)
This commit is contained in:
1 parent
33a4bb797d
commit
3a2224a4e4
1 file changed
+2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user