fix: missing booking reminder reference in cron (#20200)

This commit is contained in:
Morgan
2025-03-19 07:27:52 +00:00
committed by GitHub
parent 7250e22257
commit d64ae3c901
@@ -91,7 +91,7 @@ async function postHandler(request: NextRequest) {
},
});
for (const booking of bookings.filter((b) => !reminders.some((r) => r.referenceId == b.id))) {
for (const booking of bookingsToRemind.filter((b) => !reminders.some((r) => r.referenceId == b.id))) {
const { user } = booking;
const name = user?.name || user?.username;
if (!user || !name || !user.timeZone) {