mirror of https://github.com/Chocobozzz/PeerTube
parent
46b2cec73c
commit
465679cafd
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue