Skip to content

Commit 04ce054

Browse files
authored
fix: remove team plan check (calcom#22628)
1 parent e901e8d commit 04ce054

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

packages/trpc/server/routers/viewer/eventTypes/update.handler.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import { TRPCError } from "@trpc/server";
2626

2727
import type { TrpcSessionUser } from "../../../types";
2828
import { setDestinationCalendarHandler } from "../../viewer/calendars/setDestinationCalendar.handler";
29-
import { hasTeamPlanHandler } from "../teams/hasTeamPlan.handler";
3029
import type { TUpdateInputSchema } from "./update.schema";
3130
import {
3231
ensureUniqueBookingFields,
@@ -600,16 +599,10 @@ export const updateHandler = async ({ ctx, input }: UpdateOptions) => {
600599
}
601600

602601
if (calVideoSettings) {
603-
const { hasTeamPlan } = await hasTeamPlanHandler({
604-
ctx: { user: ctx.user },
602+
await CalVideoSettingsRepository.createOrUpdateCalVideoSettings({
603+
eventTypeId: id,
604+
calVideoSettings,
605605
});
606-
607-
if (hasTeamPlan) {
608-
await CalVideoSettingsRepository.createOrUpdateCalVideoSettings({
609-
eventTypeId: id,
610-
calVideoSettings,
611-
});
612-
}
613606
}
614607

615608
const parsedEventTypeLocations = eventTypeLocations.safeParse(eventType.locations ?? []);

0 commit comments

Comments
 (0)