aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-25 17:28:45 +0200
committerChocobozzz <me@florianbigard.com>2019-07-25 17:28:45 +0200
commit2b65c4e53511ccb85b17479cb1c62717afb8511c (patch)
tree1dd9ecd1803023fa66152c4746c6050e57adceaa /server/middlewares/validators/videos
parent552d95b1e69fbbd99f5bc300a127457e1b97b9df (diff)
downloadPeerTube-2b65c4e53511ccb85b17479cb1c62717afb8511c.tar.gz
PeerTube-2b65c4e53511ccb85b17479cb1c62717afb8511c.tar.zst
PeerTube-2b65c4e53511ccb85b17479cb1c62717afb8511c.zip
Fix scheduled privacy and verify email validations
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 27dfe91ca..af06f3c62 100644
--- a/server/middlewares/validators/videos/videos.ts
+++ b/server/middlewares/validators/videos/videos.ts
@@ -349,7 +349,7 @@ function getCommonVideoEditAttributes () {
349 .custom(isDateValid).withMessage('Should have a valid schedule update date'), 349 .custom(isDateValid).withMessage('Should have a valid schedule update date'),
350 body('scheduleUpdate.privacy') 350 body('scheduleUpdate.privacy')
351 .optional() 351 .optional()
352 .customSanitizer(toValueOrNull) 352 .customSanitizer(toIntOrNull)
353 .custom(isScheduleVideoUpdatePrivacyValid).withMessage('Should have correct schedule update privacy') 353 .custom(isScheduleVideoUpdatePrivacyValid).withMessage('Should have correct schedule update privacy')
354 ] as (ValidationChain | express.Handler)[] 354 ] as (ValidationChain | express.Handler)[]
355} 355}