]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/validators/videos/videos.ts
Merge branch 'develop' into pr/1217
[github/Chocobozzz/PeerTube.git] / server / middlewares / validators / videos / videos.ts
index 051a19e16f832e46ad3229eafde1e10027fea1dd..d9626929c649c96e88d30e2f1c4d8e428b6c143d 100644 (file)
@@ -340,6 +340,10 @@ function getCommonVideoAttributes () {
       .optional()
       .toBoolean()
       .custom(isBooleanValid).withMessage('Should have comments enabled boolean'),
+    body('downloadEnabled')
+      .optional()
+      .toBoolean()
+      .custom(isBooleanValid).withMessage('Should have downloading enabled boolean'),
 
     body('scheduleUpdate')
       .optional()