Update index.ts

This commit is contained in:
MathMan05 2025-03-23 13:13:03 -05:00 committed by GitHub
parent 109bf0da7c
commit 90287748ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -152,7 +152,10 @@ router.patch(
} }
const { maxUsername } = Config.get().limits.user; const { maxUsername } = Config.get().limits.user;
if (check_username.length > maxUsername || check_username.length < 2) { if (
check_username.length > maxUsername ||
check_username.length < 2
) {
throw FieldErrors({ throw FieldErrors({
username: { username: {
code: "BASE_TYPE_BAD_LENGTH", code: "BASE_TYPE_BAD_LENGTH",