From 385421d250bd68301cb76438b206f08484ba9461 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Date: Fri, 8 Apr 2022 13:50:00 +0200 Subject: [PATCH] fix order of past bookings (#2425) --- apps/web/server/routers/viewer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/server/routers/viewer.tsx b/apps/web/server/routers/viewer.tsx index ac694fd054..3f32214aa3 100644 --- a/apps/web/server/routers/viewer.tsx +++ b/apps/web/server/routers/viewer.tsx @@ -344,7 +344,7 @@ const loggedInViewerRouter = createProtectedRouter() Prisma.BookingOrderByWithAggregationInput > = { upcoming: { startTime: "asc" }, - past: { startTime: "desc" }, + past: { startTime: "asc" }, cancelled: { startTime: "asc" }, }; const passedBookingsFilter = bookingListingFilters[bookingListingByStatus];