aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/config.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-11 09:52:14 +0200
committerChocobozzz <me@florianbigard.com>2023-07-11 09:52:14 +0200
commitc57ad141a9ffb67f8e7d087b92eaacd2b653b562 (patch)
treebddd5d4457cb9c922275cc1d8bb71cd88b1d0293 /server/middlewares/validators/config.ts
parent784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428 (diff)
downloadPeerTube-c57ad141a9ffb67f8e7d087b92eaacd2b653b562.tar.gz
PeerTube-c57ad141a9ffb67f8e7d087b92eaacd2b653b562.tar.zst
PeerTube-c57ad141a9ffb67f8e7d087b92eaacd2b653b562.zip
Rename webtorrent config to web_videos
Diffstat (limited to 'server/middlewares/validators/config.ts')
-rw-r--r--server/middlewares/validators/config.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/middlewares/validators/config.ts b/server/middlewares/validators/config.ts
index 7029a857f..a6dbba524 100644
--- a/server/middlewares/validators/config.ts
+++ b/server/middlewares/validators/config.ts
@@ -59,7 +59,7 @@ const customConfigUpdateValidator = [
59 59
60 body('transcoding.alwaysTranscodeOriginalResolution').isBoolean(), 60 body('transcoding.alwaysTranscodeOriginalResolution').isBoolean(),
61 61
62 body('transcoding.webtorrent.enabled').isBoolean(), 62 body('transcoding.webVideos.enabled').isBoolean(),
63 body('transcoding.hls.enabled').isBoolean(), 63 body('transcoding.hls.enabled').isBoolean(),
64 64
65 body('videoStudio.enabled').isBoolean(), 65 body('videoStudio.enabled').isBoolean(),
@@ -153,8 +153,8 @@ function checkInvalidConfigIfEmailDisabled (customConfig: CustomConfig, res: exp
153function checkInvalidTranscodingConfig (customConfig: CustomConfig, res: express.Response) { 153function checkInvalidTranscodingConfig (customConfig: CustomConfig, res: express.Response) {
154 if (customConfig.transcoding.enabled === false) return true 154 if (customConfig.transcoding.enabled === false) return true
155 155
156 if (customConfig.transcoding.webtorrent.enabled === false && customConfig.transcoding.hls.enabled === false) { 156 if (customConfig.transcoding.webVideos.enabled === false && customConfig.transcoding.hls.enabled === false) {
157 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' })
158 return false 158 return false
159 } 159 }
160 160