Update config.ts
This should fix https://github.com/Chocobozzz/PeerTube/issues/1850
This commit is contained in:
parent
46b2cec73c
commit
465679cafd
|
@ -51,7 +51,7 @@ async function getConfig (req: express.Request, res: express.Response) {
|
||||||
if (serverCommit === undefined) serverCommit = await getServerCommit()
|
if (serverCommit === undefined) serverCommit = await getServerCommit()
|
||||||
|
|
||||||
const enabledResolutions = Object.keys(CONFIG.TRANSCODING.RESOLUTIONS)
|
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))
|
.map(r => parseInt(r, 10))
|
||||||
|
|
||||||
const json: ServerConfig = {
|
const json: ServerConfig = {
|
||||||
|
|
Loading…
Reference in New Issue