From 35cfa0ea3d5ca0ae92434df59d3d50716168ba6d Mon Sep 17 00:00:00 2001 From: Pavan Naik <85051488+PAVANNAIK25@users.noreply.github.com> Date: Fri, 21 Feb 2025 13:25:32 +0530 Subject: [PATCH] fix occurences issues in booking page (#19304) Co-authored-by: Tushar Bhatt <95581504+TusharBhatt1@users.noreply.github.com> --- 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,