diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-03 11:10:31 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-06 11:19:16 +0200 |
commit | 5d08a6a74e83f2e4dfe2f3ba7f5a39371e1bc89e (patch) | |
tree | dd992ea798c620b8bdb5bf5fd9b8f1b97d4410f2 /server/helpers/audit-logger.ts | |
parent | 7e5f9f001d5de22c54748f935edc0c069028bb0e (diff) | |
download | PeerTube-5d08a6a74e83f2e4dfe2f3ba7f5a39371e1bc89e.tar.gz PeerTube-5d08a6a74e83f2e4dfe2f3ba7f5a39371e1bc89e.tar.zst PeerTube-5d08a6a74e83f2e4dfe2f3ba7f5a39371e1bc89e.zip |
Add import http enabled configuration
Diffstat (limited to 'server/helpers/audit-logger.ts')
-rw-r--r-- | server/helpers/audit-logger.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/helpers/audit-logger.ts b/server/helpers/audit-logger.ts index 031b1bfbd..db20df20f 100644 --- a/server/helpers/audit-logger.ts +++ b/server/helpers/audit-logger.ts | |||
@@ -246,11 +246,9 @@ class CustomConfigAuditView extends EntityAuditView { | |||
246 | const resolutionsDict = infos.transcoding.resolutions | 246 | const resolutionsDict = infos.transcoding.resolutions |
247 | const resolutionsArray = [] | 247 | const resolutionsArray = [] |
248 | Object.entries(resolutionsDict).forEach(([resolution, isEnabled]) => { | 248 | Object.entries(resolutionsDict).forEach(([resolution, isEnabled]) => { |
249 | if (isEnabled) { | 249 | if (isEnabled) resolutionsArray.push(resolution) |
250 | resolutionsArray.push(resolution) | ||
251 | } | ||
252 | }) | 250 | }) |
253 | infos.transcoding.resolutions = resolutionsArray | 251 | Object.assign({}, infos, { transcoding: { resolutions: resolutionsArray } }) |
254 | super(customConfigKeysToKeep, 'config', infos) | 252 | super(customConfigKeysToKeep, 'config', infos) |
255 | } | 253 | } |
256 | } | 254 | } |