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()