Update config.ts

This should fix https://github.com/Chocobozzz/PeerTube/issues/1850
pull/1856/head
LiPeK 2019-05-27 15:11:38 +02:00 committed by Chocobozzz
parent 46b2cec73c
commit 465679cafd
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ async function getConfig (req: express.Request, res: express.Response) {
if (serverCommit === undefined) serverCommit = await getServerCommit()
const enabledResolutions = Object.keys(CONFIG.TRANSCODING.RESOLUTIONS)
.filter(key => CONFIG.TRANSCODING.ENABLED === CONFIG.TRANSCODING.RESOLUTIONS[key] === true)
.filter(key => CONFIG.TRANSCODING.ENABLED && CONFIG.TRANSCODING.RESOLUTIONS[key] === true)
.map(r => parseInt(r, 10))
const json: ServerConfig = {