Update index.ts

This commit is contained in:
MathMan05
2025-03-23 13:13:03 -05:00
committed by GitHub
parent 109bf0da7c
commit 90287748ce

View File

@@ -152,7 +152,10 @@ router.patch(
}
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({
username: {
code: "BASE_TYPE_BAD_LENGTH",