diff options
Diffstat (limited to 'server/middlewares/validators/remote/videos.js')
-rw-r--r-- | server/middlewares/validators/remote/videos.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/server/middlewares/validators/remote/videos.js b/server/middlewares/validators/remote/videos.js index ddc274c45..f2c6cba5e 100644 --- a/server/middlewares/validators/remote/videos.js +++ b/server/middlewares/validators/remote/videos.js | |||
@@ -5,7 +5,8 @@ const logger = require('../../../helpers/logger') | |||
5 | 5 | ||
6 | const validatorsRemoteVideos = { | 6 | const validatorsRemoteVideos = { |
7 | remoteVideos, | 7 | remoteVideos, |
8 | remoteQaduVideos | 8 | remoteQaduVideos, |
9 | remoteEventsVideos | ||
9 | } | 10 | } |
10 | 11 | ||
11 | function remoteVideos (req, res, next) { | 12 | function remoteVideos (req, res, next) { |
@@ -19,11 +20,18 @@ function remoteVideos (req, res, next) { | |||
19 | function remoteQaduVideos (req, res, next) { | 20 | function remoteQaduVideos (req, res, next) { |
20 | req.checkBody('data').isEachRemoteRequestVideosQaduValid() | 21 | req.checkBody('data').isEachRemoteRequestVideosQaduValid() |
21 | 22 | ||
22 | logger.debug('Checking remoteVideosQadu parameters', { parameters: req.body }) | 23 | logger.debug('Checking remoteQaduVideos parameters', { parameters: req.body }) |
23 | 24 | ||
24 | checkErrors(req, res, next) | 25 | checkErrors(req, res, next) |
25 | } | 26 | } |
26 | 27 | ||
28 | function remoteEventsVideos (req, res, next) { | ||
29 | req.checkBody('data').isEachRemoteRequestVideosEventsValid() | ||
30 | |||
31 | logger.debug('Checking remoteEventsVideos parameters', { parameters: req.body }) | ||
32 | |||
33 | checkErrors(req, res, next) | ||
34 | } | ||
27 | // --------------------------------------------------------------------------- | 35 | // --------------------------------------------------------------------------- |
28 | 36 | ||
29 | module.exports = validatorsRemoteVideos | 37 | module.exports = validatorsRemoteVideos |