aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorLiPeK <lipek002@gmail.com>2019-05-27 15:11:38 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-05-28 10:12:07 +0200
commit465679cafdd172f2d71234a379654269e125f34a (patch)
treed387556e682b44a29b819bc2d2840422bdb587a3 /server
parent46b2cec73c3ee10fe9f751a301e4afff0a56b371 (diff)
downloadPeerTube-465679cafdd172f2d71234a379654269e125f34a.tar.gz
PeerTube-465679cafdd172f2d71234a379654269e125f34a.tar.zst
PeerTube-465679cafdd172f2d71234a379654269e125f34a.zip
Update config.ts
This should fix https://github.com/Chocobozzz/PeerTube/issues/1850
Diffstat (limited to 'server')
-rw-r--r--server/controllers/api/config.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts
index d9ce6a153..27c416a12 100644
--- a/server/controllers/api/config.ts
+++ b/server/controllers/api/config.ts
@@ -51,7 +51,7 @@ async function getConfig (req: express.Request, res: express.Response) {
51 if (serverCommit === undefined) serverCommit = await getServerCommit() 51 if (serverCommit === undefined) serverCommit = await getServerCommit()
52 52
53 const enabledResolutions = Object.keys(CONFIG.TRANSCODING.RESOLUTIONS) 53 const enabledResolutions = Object.keys(CONFIG.TRANSCODING.RESOLUTIONS)
54 .filter(key => CONFIG.TRANSCODING.ENABLED === CONFIG.TRANSCODING.RESOLUTIONS[key] === true) 54 .filter(key => CONFIG.TRANSCODING.ENABLED && CONFIG.TRANSCODING.RESOLUTIONS[key] === true)
55 .map(r => parseInt(r, 10)) 55 .map(r => parseInt(r, 10))
56 56
57 const json: ServerConfig = { 57 const json: ServerConfig = {