Revert "perf: deduplicating DB fetches + leverage unique DB index for team ty…" (#21969)

This reverts commit 7900be3a30.
This commit is contained in:
Omar López authored and GitHub committed 2025-06-23 04:12:20 +00:00
1 parent 8adb720a80
commit d009682d4a
3 files changed
+111 -153

No files matched your search

@@ -156,7 +156,7 @@ export const getBookingForReschedule = async (uid: string, userId?: number) => {
let attendeeEmail: string | null = null;
let bookingSeatData: { description?: string; responses: Prisma.JsonValue } | null = null;
if (!theBooking) {
const bookingSeat = await prisma.bookingSeat.findUnique({
const bookingSeat = await prisma.bookingSeat.findFirst({
where: {
referenceUid: uid,
},