fix listBookings handler
parent
c4bfe98798
commit
e0a8cf9af2
|
@ -134,9 +134,7 @@ export async function listBookings(appApiKey: ApiKey) {
|
||||||
}
|
}
|
||||||
const bookings = await prisma.booking.findMany({
|
const bookings = await prisma.booking.findMany({
|
||||||
take: 3,
|
take: 3,
|
||||||
where: {
|
where: where,
|
||||||
userId: appApiKey.userId,
|
|
||||||
},
|
|
||||||
orderBy: {
|
orderBy: {
|
||||||
id: "desc",
|
id: "desc",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue