update username min characters

This commit is contained in:
McPizza
2024-03-01 11:30:42 +00:00
committed by GitHub
parent e5fe3d897d
commit 665ccd7628

View File

@ -25,7 +25,7 @@ export const authRouter = router({
const { name, email, password, signature, url } = input; const { name, email, password, signature, url } = input;
if ((IS_BILLING_ENABLED()) && url && url.length <= 6) { if ((IS_BILLING_ENABLED()) && url && url.length < 6) {
throw new AppError( throw new AppError(
AppErrorCode.PREMIUM_PROFILE_URL, AppErrorCode.PREMIUM_PROFILE_URL,
'Only subscribers can have a username shorter than 6 characters', 'Only subscribers can have a username shorter than 6 characters',