Skip to content

Commit 7421cea

Browse files
authored
fixes: API builds after rename (#14319)
1 parent 507daa6 commit 7421cea

File tree

1 file changed

+3
-2
lines changed
  • apps/api/v1/pages/api/teams/[teamId]

1 file changed

+3
-2
lines changed

apps/api/v1/pages/api/teams/[teamId]/_patch.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Prisma } from "@prisma/client";
22
import type { NextApiRequest } from "next";
33

4-
import { purchaseTeamSubscription } from "@calcom/features/ee/teams/lib/payments";
4+
import { purchaseTeamOrOrgSubscription } from "@calcom/features/ee/teams/lib/payments";
55
import { IS_TEAM_BILLING_ENABLED } from "@calcom/lib/constants";
66
import { HttpError } from "@calcom/lib/http-error";
77
import { defaultResponder } from "@calcom/lib/server";
@@ -105,10 +105,11 @@ export async function patchHandler(req: NextApiRequest) {
105105
};
106106
delete data.slug;
107107
if (IS_TEAM_BILLING_ENABLED) {
108-
const checkoutSession = await purchaseTeamSubscription({
108+
const checkoutSession = await purchaseTeamOrOrgSubscription({
109109
teamId: _team.id,
110110
seats: _team.members.length,
111111
userId,
112+
pricePerSeat: null,
112113
});
113114
if (!checkoutSession.url)
114115
throw new TRPCError({

0 commit comments

Comments
 (0)