diff options
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/config.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index 8cfaf3e29..47b91cd94 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -114,6 +114,7 @@ async function updateCustomConfig (req: express.Request, res: express.Response, | |||
114 | // Need to change the videoQuota key a little bit | 114 | // Need to change the videoQuota key a little bit |
115 | const toUpdateJSON = omit(toUpdate, 'videoQuota') | 115 | const toUpdateJSON = omit(toUpdate, 'videoQuota') |
116 | toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota | 116 | toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota |
117 | delete toUpdate.user.videoQuota | ||
117 | 118 | ||
118 | await writeFilePromise(CONFIG.CUSTOM_FILE, JSON.stringify(toUpdateJSON)) | 119 | await writeFilePromise(CONFIG.CUSTOM_FILE, JSON.stringify(toUpdateJSON)) |
119 | 120 | ||