Files
Anik Dhabal BabuandGitHub a2185d9ee0 fix: sms and whatsapp reminder issue with seated event (#25294)
* fix: sms reminder issue with seated event

* fix seated event and workflow issue

* fix whatsapp reminder

* Refactor imports in reminderScheduler.ts

* use repository
2025-12-03 04:12:38 +00:00

43 lines
894 B
TypeScript

import type { PrismaClient } from "@calcom/prisma";
export class BookingSeatRepository {
constructor(private prismaClient: PrismaClient) {}
getByUidIncludeAttendee(uid: string) {
return this.prismaClient.bookingSeat.findUnique({
where: {
referenceUid: uid,
},
select: {
attendee: {
select: {
email: true,
},
},
},
});
}
getByReferenceUidWithAttendeeDetails(referenceUid: string) {
return this.prismaClient.bookingSeat.findUnique({
where: {
referenceUid,
},
select: {
attendee: {
select: {
name: true,
id: true,
bookingId: true,
noShow: true,
phoneNumber: true,
email: true,
locale: true,
timeZone: true,
},
},
},
});
}
}