diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-08 15:51:46 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-07-10 14:02:41 +0200 |
commit | 310b5219b38427f0c2c7ba57225afdd8f3064380 (patch) | |
tree | 853ff7e4e66425ca47b0999384eeb08ed14b28ff /server/middlewares/validators | |
parent | 811cef146c841ef8530bc812c05dfee77e0f2998 (diff) | |
download | PeerTube-310b5219b38427f0c2c7ba57225afdd8f3064380.tar.gz PeerTube-310b5219b38427f0c2c7ba57225afdd8f3064380.tar.zst PeerTube-310b5219b38427f0c2c7ba57225afdd8f3064380.zip |
Add new abuses tests
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r-- | server/middlewares/validators/abuse.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/abuse.ts b/server/middlewares/validators/abuse.ts index 048dbead0..966d1f7fb 100644 --- a/server/middlewares/validators/abuse.ts +++ b/server/middlewares/validators/abuse.ts | |||
@@ -128,7 +128,7 @@ const abuseListValidator = [ | |||
128 | .custom(exists).withMessage('Should have a valid search'), | 128 | .custom(exists).withMessage('Should have a valid search'), |
129 | query('state') | 129 | query('state') |
130 | .optional() | 130 | .optional() |
131 | .custom(isAbuseStateValid).withMessage('Should have a valid video abuse state'), | 131 | .custom(isAbuseStateValid).withMessage('Should have a valid abuse state'), |
132 | query('videoIs') | 132 | query('videoIs') |
133 | .optional() | 133 | .optional() |
134 | .custom(isAbuseVideoIsValid).withMessage('Should have a valid "video is" attribute'), | 134 | .custom(isAbuseVideoIsValid).withMessage('Should have a valid "video is" attribute'), |