feat: Show routing reason on booking page [CAL-4814] (#18053)

This commit is contained in:
Joe Au-Yeung authored and GitHub committed 2024-12-10 14:31:48 -07:00
1 parent a466e8eef7
commit 44d6c1f3fb
4 files changed
+245 -162

No files matched your search

@@ -1,3 +1,5 @@
import { Prisma as PrismaClientType } from "@prisma/client";
import { parseRecurringEvent, parseEventTypeColor } from "@calcom/lib";
import getAllUserBookings from "@calcom/lib/bookings/getAllUserBookings";
import type { PrismaClient } from "@calcom/prisma";
@@ -283,6 +285,10 @@ export async function getBookings({
},
},
},
assignmentReason: {
orderBy: { createdAt: PrismaClientType.SortOrder.desc },
take: 1,
},
};
const [