aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/videos/video-captions.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators/videos/video-captions.ts')
-rw-r--r--server/middlewares/validators/videos/video-captions.ts2
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'))