remove fixed true condition
from auth signup router
This commit is contained in:
@@ -25,7 +25,7 @@ export const authRouter = router({
|
|||||||
|
|
||||||
const { name, email, password, signature, url } = input;
|
const { name, email, password, signature, url } = input;
|
||||||
|
|
||||||
if ((true || 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',
|
||||||
|
|||||||
Reference in New Issue
Block a user