diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-17 14:27:04 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-17 14:27:04 +0200 |
commit | 396f6f0140b0f76162e2378fd5a61e2f888673ed (patch) | |
tree | a5bd668bfc7dca7f311b9fc42ebb8bd01f462648 /server/middlewares/validators/videos/video-captions.ts | |
parent | 97eba003a9d0adcb0cab9190f566327b1417c7d3 (diff) | |
download | PeerTube-396f6f0140b0f76162e2378fd5a61e2f888673ed.tar.gz PeerTube-396f6f0140b0f76162e2378fd5a61e2f888673ed.tar.zst PeerTube-396f6f0140b0f76162e2378fd5a61e2f888673ed.zip |
Cleanup useless express validator messages
Diffstat (limited to 'server/middlewares/validators/videos/video-captions.ts')
-rw-r--r-- | server/middlewares/validators/videos/video-captions.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos/video-captions.ts b/server/middlewares/validators/videos/video-captions.ts index dfb8fefc5..fd6dd151a 100644 --- a/server/middlewares/validators/videos/video-captions.ts +++ b/server/middlewares/validators/videos/video-captions.ts | |||
@@ -18,7 +18,7 @@ const addVideoCaptionValidator = [ | |||
18 | isValidVideoIdParam('videoId'), | 18 | isValidVideoIdParam('videoId'), |
19 | 19 | ||
20 | param('captionLanguage') | 20 | param('captionLanguage') |
21 | .custom(isVideoCaptionLanguageValid).not().isEmpty().withMessage('Should have a valid caption language'), | 21 | .custom(isVideoCaptionLanguageValid).not().isEmpty(), |
22 | 22 | ||
23 | body('captionfile') | 23 | body('captionfile') |
24 | .custom((_, { req }) => isVideoCaptionFile(req.files, 'captionfile')) | 24 | .custom((_, { req }) => isVideoCaptionFile(req.files, 'captionfile')) |