From 4becb21d53a1b3561f11cb85d0db98e068956d25 Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz Date: Tue, 3 Aug 2021 05:59:38 +0530 Subject: [PATCH] Cleaned up the code --- pages/bookings/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/bookings/index.tsx b/pages/bookings/index.tsx index 0880f37a04..23b1082420 100644 --- a/pages/bookings/index.tsx +++ b/pages/bookings/index.tsx @@ -56,7 +56,6 @@ export default function Bookings({ bookings }) { className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> Date - {console.log(bookings)} Actions @@ -159,7 +158,7 @@ export async function getServerSideProps(context) { }, }); - let b = await prisma.booking.findMany({ + const b = await prisma.booking.findMany({ where: { userId: user.id, },