diff options
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/config.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index 8dfc3deb4..25ddd1fa6 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -43,7 +43,7 @@ async function getConfig (req: express.Request, res: express.Response, next: exp | |||
43 | const allowedForCurrentIP = isSignupAllowedForCurrentIP(req.ip) | 43 | const allowedForCurrentIP = isSignupAllowedForCurrentIP(req.ip) |
44 | 44 | ||
45 | const enabledResolutions = Object.keys(CONFIG.TRANSCODING.RESOLUTIONS) | 45 | const enabledResolutions = Object.keys(CONFIG.TRANSCODING.RESOLUTIONS) |
46 | .filter(key => CONFIG.TRANSCODING.RESOLUTIONS[key] === true) | 46 | .filter(key => CONFIG.TRANSCODING.ENABLED === CONFIG.TRANSCODING.RESOLUTIONS[key] === true) |
47 | .map(r => parseInt(r, 10)) | 47 | .map(r => parseInt(r, 10)) |
48 | 48 | ||
49 | const json: ServerConfig = { | 49 | const json: ServerConfig = { |