From 396f6f0140b0f76162e2378fd5a61e2f888673ed Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Aug 2022 14:27:04 +0200 Subject: Cleanup useless express validator messages --- server/middlewares/validators/videos/video-view.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/middlewares/validators/videos/video-view.ts') diff --git a/server/middlewares/validators/videos/video-view.ts b/server/middlewares/validators/videos/video-view.ts index 2edcd140f..4927c04ad 100644 --- a/server/middlewares/validators/videos/video-view.ts +++ b/server/middlewares/validators/videos/video-view.ts @@ -10,7 +10,7 @@ import { getCachedVideoDuration } from '@server/lib/video' const getVideoLocalViewerValidator = [ param('localViewerId') - .custom(isIdValid).withMessage('Should have a valid local viewer id'), + .custom(isIdValid), async (req: express.Request, res: express.Response, next: express.NextFunction) => { logger.debug('Checking getVideoLocalViewerValidator parameters', { parameters: req.params }) @@ -37,7 +37,7 @@ const videoViewValidator = [ body('currentTime') .optional() // TODO: remove optional in a few versions, introduced in 4.2 .customSanitizer(toIntOrNull) - .custom(isIntOrNull).withMessage('Should have correct current time'), + .custom(isIntOrNull), async (req: express.Request, res: express.Response, next: express.NextFunction) => { logger.debug('Checking videoView parameters', { parameters: req.body }) -- cgit v1.2.3