fix listBookings handler

integromat-app^2
aar2dee2 2023-08-31 13:22:12 +05:30
parent c4bfe98798
commit e0a8cf9af2
1 changed files with 1 additions and 3 deletions

View File

@ -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",
}, },