fix: Include ordered attendees in booking select query (#20935)

* fix: correct ordering

* another
This commit is contained in:
Anik Dhabal Babu
2025-04-24 12:33:20 +00:00
committed by GitHub
parent 6815f2f9c7
commit 41fafb9e5e
2 changed files with 8 additions and 1 deletions
@@ -42,6 +42,9 @@ const getUserBooking = async (uid: string) => {
timeZone: true,
phoneNumber: true,
},
orderBy: {
id: "asc",
},
},
eventTypeId: true,
eventType: {
+5 -1
View File
@@ -8,6 +8,10 @@ export const bookingMinimalSelect = Prisma.validator<Prisma.BookingSelect>()({
customInputs: true,
startTime: true,
endTime: true,
attendees: true,
attendees: {
orderBy: {
id: "asc",
},
},
metadata: true,
});