chore: enable transcription for teams plan users (#15025)

This commit is contained in:
Udit Takkar authored and GitHub committed 2024-05-14 09:28:13 -04:00
1 parent 3942df369d
commit 51428087ef
2 files changed
+2 -13

No files matched your search

@@ -169,17 +169,6 @@ const DailyVideoApiAdapter = (): VideoApiAdapter => {
},
});
// Check if organizer has subscribed to Cal.ai
const isCalAiSubscribed = await prisma.credential.findMany({
where: {
userId: event.organizer.id,
type: "cal-ai_automation",
invalid: false,
paymentStatus: "active",
},
});
return {
privacy: "public",
properties: {
@@ -189,7 +178,7 @@ const DailyVideoApiAdapter = (): VideoApiAdapter => {
enable_chat: true,
exp: exp,
enable_recording: scalePlan === "true" && !!hasTeamPlan === true ? "cloud" : undefined,
enable_transcription_storage: !!isCalAiSubscribed,
enable_transcription_storage: !!hasTeamPlan,
permissions: {
canAdmin: ["transcription"],
},