feat: add option to disable sending transcription emails (#19065)

* feat: add option to disable sending transcription emails

* fix: types and tests

* fix: type error

* fix: type err

* fix: type err

---------

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-02-07 12:33:38 +00:00
1 parent 6ca76707da
commit 808de26401
17 files changed
+83 -30

No files matched your search

@@ -30,7 +30,10 @@ type res = Awaited<
ReturnType<typeof MembershipRepository.findAllByUpIdIncludeMinimalEventTypes>
>[number]["team"]["eventTypes"][number];
type EventType = Omit<res, "forwardParamsSuccessRedirect"> & { children?: { id: number }[] };
type EventType = Omit<res, "forwardParamsSuccessRedirect"> & {
children?: { id: number }[];
canSendCalVideoTranscriptionEmails?: boolean;
};
export const getTeamAndEventTypeOptions = async ({ ctx, input }: GetTeamAndEventTypeOptions) => {
await checkRateLimitAndThrowError({
@@ -119,7 +122,7 @@ export const getTeamAndEventTypeOptions = async ({ ctx, input }: GetTeamAndEvent
name: profile.name,
eventTypesLockedByOrg: parentOrgHasLockedEventTypes,
},
eventTypes: profileEventTypes,
eventTypes: profileEventTypes as EventType[],
});
eventTypeGroups = ([] as EventTypeGroup[]).concat(