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 3fd355e6d..8dfc3deb4 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -161,6 +161,7 @@ async function updateCustomConfig (req: express.Request, res: express.Response, | |||
161 | // camelCase to snake_case key | 161 | // camelCase to snake_case key |
162 | const toUpdateJSON = omit(toUpdate, 'user.videoQuota', 'instance.defaultClientRoute', 'instance.shortDescription', 'cache.videoCaptions') | 162 | const toUpdateJSON = omit(toUpdate, 'user.videoQuota', 'instance.defaultClientRoute', 'instance.shortDescription', 'cache.videoCaptions') |
163 | toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota | 163 | toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota |
164 | toUpdateJSON.user['video_quota_daily'] = toUpdate.user.videoQuotaDaily | ||
164 | toUpdateJSON.instance['default_client_route'] = toUpdate.instance.defaultClientRoute | 165 | toUpdateJSON.instance['default_client_route'] = toUpdate.instance.defaultClientRoute |
165 | toUpdateJSON.instance['short_description'] = toUpdate.instance.shortDescription | 166 | toUpdateJSON.instance['short_description'] = toUpdate.instance.shortDescription |
166 | toUpdateJSON.instance['default_nsfw_policy'] = toUpdate.instance.defaultNSFWPolicy | 167 | toUpdateJSON.instance['default_nsfw_policy'] = toUpdate.instance.defaultNSFWPolicy |