Skip to content

Scheduling infrastructure for absolutely everyone.

fix: added order by (#20959)

Anik Dhabal Babuce2d3a4b0031
diff --git a/packages/features/bookings/lib/get-booking.ts b/packages/features/bookings/lib/get-booking.ts
index bf4b9310d2b..57dabb6cb24 100644
--- a/packages/features/bookings/lib/get-booking.ts
+++ b/packages/features/bookings/lib/get-booking.ts
@@ -73,6 +73,9 @@ async function getBooking(prisma: PrismaClient, uid: string, isSeatedEvent?: boo
name: true,
bookingSeat: true,
},
+ orderBy: {
+ id: "asc",
+ },
},
user: {
select: {
diff --git a/packages/prisma/selects/booking.ts b/packages/prisma/selects/booking.ts
index b7a1f0eeb5a..9615a17c551 100644
--- a/packages/prisma/selects/booking.ts
+++ b/packages/prisma/selects/booking.ts
@@ -8,10 +8,6 @@ export const bookingMinimalSelect = Prisma.validator<Prisma.BookingSelect>()({
customInputs: true,
startTime: true,
endTime: true,
- attendees: {
- orderBy: {
- id: "asc",
- },
- },
+ attendees: true,
metadata: true,
});