aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/audit-logger.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/audit-logger.ts')
-rw-r--r--server/helpers/audit-logger.ts6
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}