aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-28 11:32:03 +0200
committerChocobozzz <me@florianbigard.com>2018-08-28 11:32:03 +0200
commit9ee92651f64bf576c57eafe81fb3ab82def0d9e8 (patch)
tree84744a4ba79d6cb946c8580bf80a2e774610dffd /server/controllers
parentbfcef50db9c1c1d34ea550ea156c52cb327e160e (diff)
downloadPeerTube-9ee92651f64bf576c57eafe81fb3ab82def0d9e8.tar.gz
PeerTube-9ee92651f64bf576c57eafe81fb3ab82def0d9e8.tar.zst
PeerTube-9ee92651f64bf576c57eafe81fb3ab82def0d9e8.zip
Fix tests
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/config.ts1
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