cal.pub0.org/packages/lib/server/checkUsername.ts

7 lines
304 B
TypeScript

import { checkPremiumUsername } from "@calcom/features/ee/common/lib/checkPremiumUsername";
import { IS_SELF_HOSTED } from "@calcom/lib/constants";
import { checkRegularUsername } from "./checkRegularUsername";
export const checkUsername = IS_SELF_HOSTED ? checkRegularUsername : checkPremiumUsername;