X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Fuser-history.ts;h=23a00888ce41902ad97658cc6e2b96f42021381e;hb=396f6f0140b0f76162e2378fd5a61e2f888673ed;hp=541910be557d0c36c10b0e91491fcc568a814636;hpb=97eba003a9d0adcb0cab9190f566327b1417c7d3;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/validators/user-history.ts b/server/middlewares/validators/user-history.ts index 541910be5..23a00888c 100644 --- a/server/middlewares/validators/user-history.ts +++ b/server/middlewares/validators/user-history.ts @@ -7,7 +7,7 @@ import { areValidationErrors } from './shared' const userHistoryListValidator = [ query('search') .optional() - .custom(exists).withMessage('Should have a valid search'), + .custom(exists), (req: express.Request, res: express.Response, next: express.NextFunction) => { logger.debug('Checking userHistoryListValidator parameters', { parameters: req.query }) @@ -34,7 +34,7 @@ const userHistoryRemoveAllValidator = [ const userHistoryRemoveElementValidator = [ param('videoId') - .custom(isIdValid).withMessage('Should have a valid video id'), + .custom(isIdValid), (req: express.Request, res: express.Response, next: express.NextFunction) => { logger.debug('Checking userHistoryRemoveElementValidator parameters', { parameters: req.params })