fix: remove cal video logo from select (#17665)
* fix: remove cal video logo from managed event types * fix: do not fetch cal video logo
This commit is contained in:
1 parent
f76696032e
commit
9b79c037c2
7 files changed
+23
-17
No files matched your search
@@ -9,6 +9,7 @@ import {
|
||||
import { getServerSession } from "@calcom/features/auth/lib/getServerSession";
|
||||
import { getCalVideoReference } from "@calcom/features/get-cal-video-reference";
|
||||
import { BookingRepository } from "@calcom/lib/server/repository/booking";
|
||||
import { OrganizationRepository } from "@calcom/lib/server/repository/organization";
|
||||
import { UserRepository } from "@calcom/lib/server/repository/user";
|
||||
import prisma from "@calcom/prisma";
|
||||
|
||||
@@ -55,6 +56,10 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
|
||||
).profile
|
||||
: null;
|
||||
|
||||
const calVideoLogo = profile?.organization
|
||||
? await OrganizationRepository.findCalVideoLogoByOrgId({ id: profile.organization.id })
|
||||
: null;
|
||||
|
||||
//daily.co calls have a 14 days exit buffer when a user enters a call when it's not available it will trigger the modals
|
||||
const now = new Date();
|
||||
const exitDate = new Date(now.getTime() - 14 * 24 * 60 * 60 * 1000);
|
||||
@@ -134,6 +139,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
|
||||
: bookingObj.user,
|
||||
},
|
||||
hasTeamPlan: !!hasTeamPlan,
|
||||
calVideoLogo,
|
||||
trpcState: ssr.dehydrate(),
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user