summary refs log tree commit diff
path: root/api/src/util/String.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-05 19:34:13 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-05 19:34:13 +0200
commit214d6b821c2d1a01286ddb9b33a8afcc750bb9ba (patch)
tree64dc648050e6d1709224fc36d17d0262389ea468 /api/src/util/String.ts
parent:sparkles: add User.register() method (diff)
downloadserver-214d6b821c2d1a01286ddb9b33a8afcc750bb9ba.tar.xz
:art: move field error to util
Diffstat (limited to 'api/src/util/String.ts')
-rw-r--r--api/src/util/String.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/util/String.ts b/api/src/util/String.ts

index 67d87e37..982b7e11 100644 --- a/api/src/util/String.ts +++ b/api/src/util/String.ts
@@ -1,6 +1,6 @@ import { Request } from "express"; import { ntob } from "./Base64"; -import { FieldErrors } from "./FieldError"; +import { FieldErrors } from "@fosscord/util"; export function checkLength(str: string, min: number, max: number, key: string, req: Request) { if (str.length < min || str.length > max) {