From b385d3547bf487c341ab20c9a372fdf84af1da5c Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Date: Mon, 13 Jun 2022 13:24:21 +0530 Subject: [PATCH] Adds debug console.log --- pages/api/bookings/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/bookings/index.ts b/pages/api/bookings/index.ts index e31a017801..ab85b339cd 100644 --- a/pages/api/bookings/index.ts +++ b/pages/api/bookings/index.ts @@ -142,7 +142,7 @@ async function createOrlistAllBookings( }) ); await Promise.all(promises); - + console.log("All promises resolved! About to send the response"); res.status(201).json({ booking, message: "Booking created successfully" }); } else (error: Error) => {