From 75ba887d10eacb9cd1392e62f68617c7643c9add Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 29 Jan 2020 15:17:42 +0100 Subject: Don't log error on actor delete signature error --- server/middlewares/validators/videos/video-rates.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/middlewares/validators/videos') diff --git a/server/middlewares/validators/videos/video-rates.ts b/server/middlewares/validators/videos/video-rates.ts index 4021cfecc..5d5fae8aa 100644 --- a/server/middlewares/validators/videos/video-rates.ts +++ b/server/middlewares/validators/videos/video-rates.ts @@ -24,7 +24,7 @@ const videoUpdateRateValidator = [ } ] -const getAccountVideoRateValidator = function (rateType: VideoRateType) { +const getAccountVideoRateValidatorFactory = function (rateType: VideoRateType) { return [ param('name').custom(isAccountNameValid).withMessage('Should have a valid account name'), param('videoId').custom(isIdOrUUIDValid).not().isEmpty().withMessage('Should have a valid videoId'), @@ -64,6 +64,6 @@ const videoRatingValidator = [ export { videoUpdateRateValidator, - getAccountVideoRateValidator, + getAccountVideoRateValidatorFactory, videoRatingValidator } -- cgit v1.2.3