feat: Disable booking emails to guests (#25217)
* feat: disable SMS org setting * chore: undo * fix: cal evnet * feat: add more settings * tests: add email manager unit tests * fix: update * fix: type error * fix: test * refactor: UI * refactor: UI * perf: fetch only once * perf: fetch only once * chore: use org * fix: test * test: add unit tests * refactor: email manager * fix: add confirmation dialog for individual checkbox * fix: sms * chore: common.json
This commit is contained in:
1 parent
1c3ced5b70
commit
35d6c41fff
32 files changed
+936
-27
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import type { PrismaClient } from "@calcom/prisma";
|
||||
|
||||
export class OrganizationSettingsRepository {
|
||||
constructor(private prismaClient: PrismaClient) {}
|
||||
|
||||
async getEmailSettings(organizationId: number) {
|
||||
return await this.prismaClient.organizationSettings.findUnique({
|
||||
where: { organizationId },
|
||||
select: {
|
||||
disableAttendeeConfirmationEmail: true,
|
||||
disableAttendeeCancellationEmail: true,
|
||||
disableAttendeeRescheduledEmail: true,
|
||||
disableAttendeeRequestEmail: true,
|
||||
disableAttendeeReassignedEmail: true,
|
||||
disableAttendeeAwaitingPaymentEmail: true,
|
||||
disableAttendeeRescheduleRequestEmail: true,
|
||||
disableAttendeeLocationChangeEmail: true,
|
||||
disableAttendeeNewEventEmail: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user