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

This commit is contained in:
Udit Takkar
2024-05-14 09:28:13 -04:00
committed by GitHub
parent 3942df369d
commit 51428087ef
2 changed files with 2 additions and 13 deletions
@@ -50,7 +50,7 @@ export default function JoinCall(props: PageProps) {
customTrayButtons: {
transcription: {
label: "Cal.ai",
tooltip: "Enable transcription powered by AI",
tooltip: "Toggle real time transcription powered by AI",
iconPath: `${WEBAPP_URL}/sparkles.svg`,
iconPathDarkMode: `${WEBAPP_URL}/sparkles.svg`,
},
@@ -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"],
},