chore: enable transcription for teams plan users (#15025)
This commit is contained in:
@@ -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"],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user