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,
|
|
},
|
|
});
|
|
}
|
|
}
|