* feat: Link to rescheduled booking from the old one * add original comment * use fromReschedule * fix: type check * review updates * Update common.json * change booking page text * Delete packages/features/bookings/lib/getRescheduledToBooking.tsx --------- Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com>
15 lines
343 B
TypeScript
15 lines
343 B
TypeScript
import prisma from "@calcom/prisma";
|
|
|
|
export class BookingRepository {
|
|
static async findFirstBookingByReschedule({ originalBookingUid }: { originalBookingUid: string }) {
|
|
return await prisma.booking.findFirst({
|
|
where: {
|
|
fromReschedule: originalBookingUid,
|
|
},
|
|
select: {
|
|
uid: true,
|
|
},
|
|
});
|
|
}
|
|
}
|