From: Chocobozzz Date: Wed, 28 Feb 2018 08:55:00 +0000 (+0100) Subject: Add indentation in json configuration file generated by the admin X-Git-Tag: v0.0.29-alpha~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2ad429529c5820d13df698dda17a313c2d383daf;p=oweals%2Fpeertube.git Add indentation in json configuration file generated by the admin interface --- 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()