diff options
Diffstat (limited to 'server/middlewares/validators/config.ts')
-rw-r--r-- | server/middlewares/validators/config.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/middlewares/validators/config.ts b/server/middlewares/validators/config.ts index a0074cb24..a6dbba524 100644 --- a/server/middlewares/validators/config.ts +++ b/server/middlewares/validators/config.ts | |||
@@ -25,6 +25,7 @@ const customConfigUpdateValidator = [ | |||
25 | body('cache.previews.size').isInt(), | 25 | body('cache.previews.size').isInt(), |
26 | body('cache.captions.size').isInt(), | 26 | body('cache.captions.size').isInt(), |
27 | body('cache.torrents.size').isInt(), | 27 | body('cache.torrents.size').isInt(), |
28 | body('cache.storyboards.size').isInt(), | ||
28 | 29 | ||
29 | body('signup.enabled').isBoolean(), | 30 | body('signup.enabled').isBoolean(), |
30 | body('signup.limit').isInt(), | 31 | body('signup.limit').isInt(), |
@@ -58,7 +59,7 @@ const customConfigUpdateValidator = [ | |||
58 | 59 | ||
59 | body('transcoding.alwaysTranscodeOriginalResolution').isBoolean(), | 60 | body('transcoding.alwaysTranscodeOriginalResolution').isBoolean(), |
60 | 61 | ||
61 | body('transcoding.webtorrent.enabled').isBoolean(), | 62 | body('transcoding.webVideos.enabled').isBoolean(), |
62 | body('transcoding.hls.enabled').isBoolean(), | 63 | body('transcoding.hls.enabled').isBoolean(), |
63 | 64 | ||
64 | body('videoStudio.enabled').isBoolean(), | 65 | body('videoStudio.enabled').isBoolean(), |
@@ -152,8 +153,8 @@ function checkInvalidConfigIfEmailDisabled (customConfig: CustomConfig, res: exp | |||
152 | function checkInvalidTranscodingConfig (customConfig: CustomConfig, res: express.Response) { | 153 | function checkInvalidTranscodingConfig (customConfig: CustomConfig, res: express.Response) { |
153 | if (customConfig.transcoding.enabled === false) return true | 154 | if (customConfig.transcoding.enabled === false) return true |
154 | 155 | ||
155 | if (customConfig.transcoding.webtorrent.enabled === false && customConfig.transcoding.hls.enabled === false) { | 156 | if (customConfig.transcoding.webVideos.enabled === false && customConfig.transcoding.hls.enabled === false) { |
156 | res.fail({ message: 'You need to enable at least webtorrent transcoding or hls transcoding' }) | 157 | res.fail({ message: 'You need to enable at least web_videos transcoding or hls transcoding' }) |
157 | return false | 158 | return false |
158 | } | 159 | } |
159 | 160 | ||