aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/videos.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators/videos.js')
-rw-r--r--server/middlewares/validators/videos.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/middlewares/validators/videos.js b/server/middlewares/validators/videos.js
index 6cc0c2565..095fc382b 100644
--- a/server/middlewares/validators/videos.js
+++ b/server/middlewares/validators/videos.js
@@ -23,6 +23,7 @@ function videosAdd (req, res, next) {
23 req.checkBody('name', 'Should have a valid name').isVideoNameValid() 23 req.checkBody('name', 'Should have a valid name').isVideoNameValid()
24 req.checkBody('category', 'Should have a valid category').isVideoCategoryValid() 24 req.checkBody('category', 'Should have a valid category').isVideoCategoryValid()
25 req.checkBody('licence', 'Should have a valid licence').isVideoLicenceValid() 25 req.checkBody('licence', 'Should have a valid licence').isVideoLicenceValid()
26 req.checkBody('nsfw', 'Should have a valid NSFW attribute').isVideoNSFWValid()
26 req.checkBody('description', 'Should have a valid description').isVideoDescriptionValid() 27 req.checkBody('description', 'Should have a valid description').isVideoDescriptionValid()
27 req.checkBody('tags', 'Should have correct tags').optional().isVideoTagsValid() 28 req.checkBody('tags', 'Should have correct tags').optional().isVideoTagsValid()
28 29
@@ -51,6 +52,7 @@ function videosUpdate (req, res, next) {
51 req.checkBody('name', 'Should have a valid name').optional().isVideoNameValid() 52 req.checkBody('name', 'Should have a valid name').optional().isVideoNameValid()
52 req.checkBody('category', 'Should have a valid category').optional().isVideoCategoryValid() 53 req.checkBody('category', 'Should have a valid category').optional().isVideoCategoryValid()
53 req.checkBody('licence', 'Should have a valid licence').optional().isVideoLicenceValid() 54 req.checkBody('licence', 'Should have a valid licence').optional().isVideoLicenceValid()
55 req.checkBody('nsfw', 'Should have a valid NSFW attribute').optional().isVideoNSFWValid()
54 req.checkBody('description', 'Should have a valid description').optional().isVideoDescriptionValid() 56 req.checkBody('description', 'Should have a valid description').optional().isVideoDescriptionValid()
55 req.checkBody('tags', 'Should have correct tags').optional().isVideoTagsValid() 57 req.checkBody('tags', 'Should have correct tags').optional().isVideoTagsValid()
56 58