Merge branch 'main' into production
commit
e4ec3a04e9
|
@ -142,7 +142,7 @@ async function createOrlistAllBookings(
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
await Promise.all(promises);
|
await Promise.all(promises);
|
||||||
|
console.log("All promises resolved! About to send the response");
|
||||||
res.status(201).json({ booking, message: "Booking created successfully" });
|
res.status(201).json({ booking, message: "Booking created successfully" });
|
||||||
} else
|
} else
|
||||||
(error: Error) => {
|
(error: Error) => {
|
||||||
|
|
Loading…
Reference in New Issue