From 662fb3ab5e3aafa49c96809a61239c9046a5c485 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 13 Sep 2018 09:48:34 +0200 Subject: Fix feeds with channel filter --- server/middlewares/validators/feeds.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/middlewares/validators/feeds.ts') diff --git a/server/middlewares/validators/feeds.ts b/server/middlewares/validators/feeds.ts index c1054ad9b..969ce2526 100644 --- a/server/middlewares/validators/feeds.ts +++ b/server/middlewares/validators/feeds.ts @@ -23,7 +23,7 @@ const videoFeedsValidator = [ if (areValidationErrors(req, res)) return if (req.query.accountId && !await isAccountIdExist(req.query.accountId, res)) return - if (req.query.videoChannelName && !await isVideoChannelIdExist(req.query.videoChannelName, res)) return + if (req.query.videoChannelId && !await isVideoChannelIdExist(req.query.videoChannelId, res)) return if (req.query.accountName && !await isAccountNameWithHostExist(req.query.accountName, res)) return if (req.query.videoChannelName && !await isVideoChannelNameWithHostExist(req.query.videoChannelName, res)) return -- cgit v1.2.3