Remove premium self hosted comment
parent
a55f002490
commit
8adce1b65f
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue