From 2ad429529c5820d13df698dda17a313c2d383daf Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 28 Feb 2018 09:55:00 +0100 Subject: Add indentation in json configuration file generated by the admin interface --- server/controllers/api/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index 47b91cd94..7ef0c19e3 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts @@ -116,7 +116,7 @@ async function updateCustomConfig (req: express.Request, res: express.Response, toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota delete toUpdate.user.videoQuota - await writeFilePromise(CONFIG.CUSTOM_FILE, JSON.stringify(toUpdateJSON)) + await writeFilePromise(CONFIG.CUSTOM_FILE, JSON.stringify(toUpdateJSON, undefined, 2)) reloadConfig() -- cgit v1.2.3