From 8adce1b65fb2b216d73c0df4917d3ea9fe5ff7d8 Mon Sep 17 00:00:00 2001 From: Sean Brydon Date: Fri, 22 Sep 2023 08:52:01 +0100 Subject: [PATCH] Remove premium self hosted comment --- .../auth/signup/handlers/selfHostedHandler.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/features/auth/signup/handlers/selfHostedHandler.ts b/packages/features/auth/signup/handlers/selfHostedHandler.ts index 6e56f2bd01..502f9902b7 100644 --- a/packages/features/auth/signup/handlers/selfHostedHandler.ts +++ b/packages/features/auth/signup/handlers/selfHostedHandler.ts @@ -50,17 +50,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) if (team) { const teamMetadata = teamMetadataSchema.parse(team?.metadata); - // if (IS_CALCOM && (!teamMetadata?.isOrganization || !!team.parentId)) { - // const checkUsername = await checkPremiumUsername(username); - // if (checkUsername.premium) { - // // This signup page is ONLY meant for team invites and local setup. Not for every day users. - // // In singup redesign/refactor coming up @sean will tackle this to make them the same API/page instead of two. - // return res.status(422).json({ - // message: "Sign up from https://cal.com/signup to claim your premium username", - // }); - // } - // } - const user = await prisma.user.upsert({ where: { email: userEmail }, update: {