Merge branch 'main' into production

This commit is contained in:
Agusti Fernandez Pardo committed 2022-06-12 01:27:51 +02:00
commit 99f9964d12
1 file changed
+1
+1
View File
@@ -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) =>