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/shared/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/middlewares/validators/shared') diff --git a/server/middlewares/validators/shared/utils.ts b/server/middlewares/validators/shared/utils.ts index 410de4d80..77b64bc7a 100644 --- a/server/middlewares/validators/shared/utils.ts +++ b/server/middlewares/validators/shared/utils.ts @@ -26,13 +26,13 @@ function areValidationErrors (req: express.Request, res: express.Response) { function isValidVideoIdParam (paramName: string) { return param(paramName) .customSanitizer(toCompleteUUID) - .custom(isIdOrUUIDValid).withMessage('Should have a valid video id') + .custom(isIdOrUUIDValid).withMessage('Should have a valid video id (id, short UUID or UUID)') } function isValidPlaylistIdParam (paramName: string) { return param(paramName) .customSanitizer(toCompleteUUID) - .custom(isIdOrUUIDValid).withMessage('Should have a valid playlist id') + .custom(isIdOrUUIDValid).withMessage('Should have a valid playlist id (id, short UUID or UUID)') } // --------------------------------------------------------------------------- -- cgit v1.2.3