From 9ee92651f64bf576c57eafe81fb3ab82def0d9e8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 28 Aug 2018 11:32:03 +0200 Subject: Fix tests --- server/controllers/api/config.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'server/controllers') 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, // camelCase to snake_case key const toUpdateJSON = omit(toUpdate, 'user.videoQuota', 'instance.defaultClientRoute', 'instance.shortDescription', 'cache.videoCaptions') toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota + toUpdateJSON.user['video_quota_daily'] = toUpdate.user.videoQuotaDaily toUpdateJSON.instance['default_client_route'] = toUpdate.instance.defaultClientRoute toUpdateJSON.instance['short_description'] = toUpdate.instance.shortDescription toUpdateJSON.instance['default_nsfw_policy'] = toUpdate.instance.defaultNSFWPolicy -- cgit v1.2.3