From 70330f63236a3200829f2ba76c10cca88326b858 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 31 May 2021 19:47:14 +0200 Subject: improve api param message for dates --- server/middlewares/validators/videos/videos.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/middlewares/validators/videos/videos.ts') diff --git a/server/middlewares/validators/videos/videos.ts b/server/middlewares/validators/videos/videos.ts index 3219e10d4..dce02df18 100644 --- a/server/middlewares/validators/videos/videos.ts +++ b/server/middlewares/validators/videos/videos.ts @@ -473,7 +473,7 @@ function getCommonVideoEditAttributes () { .customSanitizer(toValueOrNull), body('scheduleUpdate.updateAt') .optional() - .custom(isDateValid).withMessage('Should have a valid schedule update date'), + .custom(isDateValid).withMessage('Should have a schedule update date that conforms to ISO 8601'), body('scheduleUpdate.privacy') .optional() .customSanitizer(toIntOrNull) -- cgit v1.2.3