Cleaned up the code

pull/404/head
Syed Ali Shahbaz 2021-08-03 05:59:38 +05:30
parent 5388ea0610
commit 4becb21d53
1 changed files with 1 additions and 2 deletions

View File

@ -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"> className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Date Date
</th> </th>
{console.log(bookings)}
<th scope="col" className="relative px-6 py-3"> <th scope="col" className="relative px-6 py-3">
<span className="sr-only">Actions</span> <span className="sr-only">Actions</span>
</th> </th>
@ -159,7 +158,7 @@ export async function getServerSideProps(context) {
}, },
}); });
let b = await prisma.booking.findMany({ const b = await prisma.booking.findMany({
where: { where: {
userId: user.id, userId: user.id,
}, },