From 216584506aff11cb6288bd1f50dde03c6b7dedce Mon Sep 17 00:00:00 2001 From: PAVANNAIK25 Date: Sun, 16 Feb 2025 00:13:53 +0530 Subject: [PATCH] fix occurences issues in booking page --- apps/web/lib/booking.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/lib/booking.ts b/apps/web/lib/booking.ts index 2212c122f676a8..15353c60734123 100644 --- a/apps/web/lib/booking.ts +++ b/apps/web/lib/booking.ts @@ -198,7 +198,9 @@ export async function getRecurringBookings(recurringEventId: string | null) { const recurringBookings = await prisma.booking.findMany({ where: { recurringEventId, - status: BookingStatus.ACCEPTED, + status: { + in: [BookingStatus.ACCEPTED, BookingStatus.PENDING], + }, }, select: { startTime: true,