Update config.ts
This should fix https://github.com/Chocobozzz/PeerTube/issues/1850
This commit is contained in:
parent
46b2cec73c
commit
465679cafd
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue