X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Fmiddlewares%2Fvalidators%2Fvideos%2Fvideo-rates.ts;h=cbc144f69ed56cfc9161ad816341a7e5fa70e4e9;hb=feb34f6b6b991046aab6a10df747b48fa4da07a7;hp=5d5fae8aabccb8bab724106b22301d3499e465de;hpb=75ba887d10eacb9cd1392e62f68617c7643c9add;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/validators/videos/video-rates.ts b/server/middlewares/validators/videos/video-rates.ts index 5d5fae8aa..cbc144f69 100644 --- a/server/middlewares/validators/videos/video-rates.ts +++ b/server/middlewares/validators/videos/video-rates.ts @@ -51,7 +51,7 @@ const getAccountVideoRateValidatorFactory = function (rateType: VideoRateType) { const videoRatingValidator = [ query('rating').optional().custom(isRatingValid).withMessage('Value must be one of "like" or "dislike"'), - async (req: express.Request, res: express.Response, next: express.NextFunction) => { + (req: express.Request, res: express.Response, next: express.NextFunction) => { logger.debug('Checking rating parameter', { parameters: req.params }) if (areValidationErrors(req, res)) return