From 509cd56aca9bb226dec126abfb006e00302753ad Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 27 Feb 2018 17:19:22 +0100 Subject: Add warning in production.yaml To avoid confusion with the local-production.json file --- server/controllers/api/config.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'server/controllers/api') 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, // Need to change the videoQuota key a little bit const toUpdateJSON = omit(toUpdate, 'videoQuota') toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota + delete toUpdate.user.videoQuota await writeFilePromise(CONFIG.CUSTOM_FILE, JSON.stringify(toUpdateJSON)) -- cgit v1.2.3