Remove premium self hosted comment

pull/11421/merge^2
Sean Brydon 2023-09-22 08:52:01 +01:00
parent a55f002490
commit 8adce1b65f
1 changed files with 0 additions and 11 deletions

View File

@ -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: {