bookingsPerDate: protectedProcedure.query(async ({ ctx }) => {
const bookings = await ctx.prisma.bookings.findMany({});
for (let i = 0; i < bookings.length; i++) {
checkIn = bookings[i].checkIn;
checkOut = bookings[i].checkOut;
/* More Logic */
}
console.log(bookings);
}),
bookingsPerDate: protectedProcedure.query(async ({ ctx }) => {
const bookings = await ctx.prisma.bookings.findMany({});
for (let i = 0; i < bookings.length; i++) {
checkIn = bookings[i].checkIn;
checkOut = bookings[i].checkOut;
/* More Logic */
}
console.log(bookings);
}),