From be587647f98a4b83ca06a61fe55c7ac5d60927c6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 6 Jun 2016 14:15:03 +0200 Subject: Add tags support to server --- server/middlewares/reqValidators/remote.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/middlewares/reqValidators/remote.js') diff --git a/server/middlewares/reqValidators/remote.js b/server/middlewares/reqValidators/remote.js index 3bc0e0f40..b5f3118b0 100644 --- a/server/middlewares/reqValidators/remote.js +++ b/server/middlewares/reqValidators/remote.js @@ -11,7 +11,7 @@ const reqValidatorsRemote = { function remoteVideosAdd (req, res, next) { req.checkBody('data').isArray() - req.checkBody('data').eachIsRemoteVideosAddValid() + req.checkBody('data').isEachAddRemoteVideosValid() logger.debug('Checking remoteVideosAdd parameters', { parameters: req.body }) @@ -20,7 +20,7 @@ function remoteVideosAdd (req, res, next) { function remoteVideosRemove (req, res, next) { req.checkBody('data').isArray() - req.checkBody('data').eachIsRemoteVideosRemoveValid() + req.checkBody('data').isEachRemoveRemoteVideosValid() logger.debug('Checking remoteVideosRemove parameters', { parameters: req.body }) -- cgit v1.2.3