Update index.ts
This commit is contained in:
parent
109bf0da7c
commit
90287748ce
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user