From 910a0f386a116b57284b6b6a99e74ed30c9df16b Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Date: Sat, 11 Jun 2022 22:39:03 +0530 Subject: [PATCH] Debug booking API --- pages/api/bookings/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/api/bookings/index.ts b/pages/api/bookings/index.ts index af20e851fe..fc0030b651 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) =>