aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/videos/videos.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-05-31 19:47:14 +0200
committerRigel Kent <sendmemail@rigelk.eu>2021-05-31 19:47:24 +0200
commit70330f63236a3200829f2ba76c10cca88326b858 (patch)
tree4f5de29d0960ca05fa92db541a577eb051e8828a /server/middlewares/validators/videos/videos.ts
parent732c95cc979c7aabaf1a0bf436b512bab3ea0426 (diff)
downloadPeerTube-70330f63236a3200829f2ba76c10cca88326b858.tar.gz
PeerTube-70330f63236a3200829f2ba76c10cca88326b858.tar.zst
PeerTube-70330f63236a3200829f2ba76c10cca88326b858.zip
improve api param message for dates
Diffstat (limited to 'server/middlewares/validators/videos/videos.ts')
-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)