1
0
Fork 0

Update config.ts

This should fix https://github.com/Chocobozzz/PeerTube/issues/1850
This commit is contained in:
LiPeK 2019-05-27 15:11:38 +02:00 committed by Chocobozzz
parent 46b2cec73c
commit 465679cafd

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 = {