Skip to content

Scheduling infrastructure for absolutely everyone.

Debug booking API

Syed Ali Shahbaz910a0f386a11
diff --git a/pages/api/bookings/index.ts b/pages/api/bookings/index.ts
index af20e851fee..fc0030b6510 100644
--- a/pages/api/bookings/index.ts
+++ b/pages/api/bookings/index.ts
@@ -35,6 +35,7 @@ async function createOrlistAllBookings(
*/
const data = await prisma.booking.findMany({ where: { userId } });
const bookings = data.map((booking) => schemaBookingReadPublic.parse(booking));
+ console.log(`Bookings requested by ${userId}`);
if (bookings) res.status(200).json({ bookings });
else
(error: Error) =>