aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/videos
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators/videos')
-rw-r--r--server/middlewares/validators/videos/videos.ts2
1 files changed, 1 insertions, 1 deletions
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 () {
473 .customSanitizer(toValueOrNull), 473 .customSanitizer(toValueOrNull),
474 body('scheduleUpdate.updateAt') 474 body('scheduleUpdate.updateAt')
475 .optional() 475 .optional()
476 .custom(isDateValid).withMessage('Should have a valid schedule update date'), 476 .custom(isDateValid).withMessage('Should have a schedule update date that conforms to ISO 8601'),
477 body('scheduleUpdate.privacy') 477 body('scheduleUpdate.privacy')
478 .optional() 478 .optional()
479 .customSanitizer(toIntOrNull) 479 .customSanitizer(toIntOrNull)