diff options
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/validators/videos/videos.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/middlewares/validators/videos/videos.ts b/server/middlewares/validators/videos/videos.ts index 051a19e16..d9626929c 100644 --- a/server/middlewares/validators/videos/videos.ts +++ b/server/middlewares/validators/videos/videos.ts | |||
@@ -340,6 +340,10 @@ function getCommonVideoAttributes () { | |||
340 | .optional() | 340 | .optional() |
341 | .toBoolean() | 341 | .toBoolean() |
342 | .custom(isBooleanValid).withMessage('Should have comments enabled boolean'), | 342 | .custom(isBooleanValid).withMessage('Should have comments enabled boolean'), |
343 | body('downloadEnabled') | ||
344 | .optional() | ||
345 | .toBoolean() | ||
346 | .custom(isBooleanValid).withMessage('Should have downloading enabled boolean'), | ||
343 | 347 | ||
344 | body('scheduleUpdate') | 348 | body('scheduleUpdate') |
345 | .optional() | 349 | .optional() |