Scheduling infrastructure for absolutely everyone.
import type { PrismaClient } from "@calcom/prisma";
export class VideoCallGuestRepository {
constructor(private prismaClient: PrismaClient) {}
async upsertVideoCallGuest({
bookingUid,
email,
name,
}: {
bookingUid: string;
email: string;
name: string;
}) {
return await this.prismaClient.videoCallGuest.upsert({
where: {
bookingUid_email: {
bookingUid,
email,
},
},
update: { name },
create: {
bookingUid,
email,
name,
},
});
}
}