]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/validators/videos/videos.ts
improve api param message for dates
[github/Chocobozzz/PeerTube.git] / server / middlewares / validators / videos / videos.ts
index 3219e10d4fbbd7913f7daa706f67a306378e6e5a..dce02df18adcd46ea6c6f5cfca167ba045b65923 100644 (file)
@@ -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)