fix listBookings handler

This commit is contained in:
aar2dee2 2023-08-31 13:22:12 +05:30
parent c4bfe98798
commit e0a8cf9af2

View File

@ -134,9 +134,7 @@ export async function listBookings(appApiKey: ApiKey) {
}
const bookings = await prisma.booking.findMany({
take: 3,
where: {
userId: appApiKey.userId,
},
where: where,
orderBy: {
id: "desc",
},