diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-08-25 18:36:49 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-08-25 18:36:49 +0200 |
commit | 556ddc319242aafef51bae9301423ecf8701a3af (patch) | |
tree | 413829b522193584df348f0356a702b3222c3419 /server/helpers/custom-validators/users.ts | |
parent | d15ab38a905e6b50972e6f884917db9198279daf (diff) | |
download | PeerTube-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.ts | 14 |
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 | ||
37 | declare global { | 37 | declare 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 | } |