aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/users.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-08-25 18:36:49 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-08-25 18:36:49 +0200
commit556ddc319242aafef51bae9301423ecf8701a3af (patch)
tree413829b522193584df348f0356a702b3222c3419 /server/helpers/custom-validators/users.ts
parentd15ab38a905e6b50972e6f884917db9198279daf (diff)
downloadPeerTube-556ddc319242aafef51bae9301423ecf8701a3af.tar.gz
PeerTube-556ddc319242aafef51bae9301423ecf8701a3af.tar.zst
PeerTube-556ddc319242aafef51bae9301423ecf8701a3af.zip
Upgrade common server dependencies
Diffstat (limited to 'server/helpers/custom-validators/users.ts')
-rw-r--r--server/helpers/custom-validators/users.ts14
1 files changed, 6 insertions, 8 deletions
diff --git a/server/helpers/custom-validators/users.ts b/server/helpers/custom-validators/users.ts
index 750563ada..2b37bdde8 100644
--- a/server/helpers/custom-validators/users.ts
+++ b/server/helpers/custom-validators/users.ts
@@ -34,13 +34,11 @@ export {
34 isUserDisplayNSFWValid 34 isUserDisplayNSFWValid
35} 35}
36 36
37declare global { 37declare module 'express-validator' {
38 namespace ExpressValidator { 38 export interface Validator {
39 export interface Validator { 39 isUserPasswordValid,
40 isUserPasswordValid, 40 isUserRoleValid,
41 isUserRoleValid, 41 isUserUsernameValid,
42 isUserUsernameValid, 42 isUserDisplayNSFWValid
43 isUserDisplayNSFWValid
44 }
45 } 43 }
46} 44}