mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add indentation in json configuration file generated by the admin
interface
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user