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-studio.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'server/middlewares/validators/videos/video-studio.ts') diff --git a/server/middlewares/validators/videos/video-studio.ts b/server/middlewares/validators/videos/video-studio.ts index af7fe2283..d07e150ae 100644 --- a/server/middlewares/validators/videos/video-studio.ts +++ b/server/middlewares/validators/videos/video-studio.ts @@ -16,9 +16,11 @@ import { logger } from '../../../helpers/logger' import { areValidationErrors, checkUserCanManageVideo, checkUserQuota, doesVideoExist } from '../shared' const videoStudioAddEditionValidator = [ - param('videoId').custom(isIdOrUUIDValid).withMessage('Should have a valid video id/uuid'), + param('videoId') + .custom(isIdOrUUIDValid).withMessage('Should have a valid video id/uuid/short uuid'), - body('tasks').custom(isValidStudioTasksArray).withMessage('Should have a valid array of tasks'), + body('tasks') + .custom(isValidStudioTasksArray).withMessage('Should have a valid array of tasks'), async (req: express.Request, res: express.Response, next: express.NextFunction) => { logger.debug('Checking videoStudioAddEditionValidator parameters.', { parameters: req.params, body: req.body, files: req.files }) -- cgit v1.2.3