Skip to content

Scheduling infrastructure for absolutely everyone.

fix: add no show guest (#18075)

Udit Takkarb5ab6fe3faae
diff --git a/packages/features/insights/server/events.ts b/packages/features/insights/server/events.ts
index 4968ac373b3..19a7ea12d41 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,
};