From e0a8cf9af2c74e7db8c6b59dd087210a6e66ffc8 Mon Sep 17 00:00:00 2001 From: aar2dee2 <85004512+aar2dee2@users.noreply.github.com> Date: Thu, 31 Aug 2023 13:22:12 +0530 Subject: [PATCH] fix listBookings handler --- packages/app-store/_utils/nodeScheduler.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/app-store/_utils/nodeScheduler.ts b/packages/app-store/_utils/nodeScheduler.ts index 897885c6f4..9f03228401 100644 --- a/packages/app-store/_utils/nodeScheduler.ts +++ b/packages/app-store/_utils/nodeScheduler.ts @@ -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", },