From b5ab6fe3faaeba871e164964750c85dbc8607787 Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Fri, 13 Dec 2024 21:30:17 +0530 Subject: [PATCH] fix: add no show guest (#18075) * fix: add booker no show * chore: update name --- packages/features/insights/server/events.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/features/insights/server/events.ts b/packages/features/insights/server/events.ts index 4968ac373b..19a7ea12d4 100644 --- a/packages/features/insights/server/events.ts +++ b/packages/features/insights/server/events.ts @@ -422,10 +422,12 @@ class EventsInsights { select: { name: true, email: true, + noShow: true, }, }, }, }); + const bookingMap = new Map(bookings.map((booking) => [booking.uid, booking.attendees[0] || null])); return csvData.map((bookingTimeStatus) => { @@ -442,6 +444,7 @@ class EventsInsights { return { ...bookingTimeStatus, + noShowGuest: booker.noShow, bookerEmail: booker.email, bookerName: booker.name, };