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

7 lines
293 B
TypeScript

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