summary refs log tree commit diff
path: root/src/api/routes/users/@me
diff options
context:
space:
mode:
authorMathMan05 <73901602+MathMan05@users.noreply.github.com>2025-03-23 13:13:03 -0500
committerGitHub <noreply@github.com>2025-03-23 13:13:03 -0500
commit90287748ce99ca89c92cb5871b6587927c5cceef (patch)
tree4a74581c8caf4ad5b8332a0d4c7716fb0f1c3113 /src/api/routes/users/@me
parentfix minor bug (diff)
downloadserver-ts-90287748ce99ca89c92cb5871b6587927c5cceef.tar.xz
Update index.ts
Diffstat (limited to 'src/api/routes/users/@me')
-rw-r--r--src/api/routes/users/@me/index.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts

index 2ec6f499..3e7b9caa 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts
@@ -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",