Cleaned up the code
This commit is contained in:
parent
5388ea0610
commit
4becb21d53
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue