aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-28 09:55:00 +0100
committerChocobozzz <me@florianbigard.com>2018-02-28 09:55:00 +0100
commit2ad429529c5820d13df698dda17a313c2d383daf (patch)
tree2bb4fee5013dd0fd236395b6348b4f81090c3ea6 /server/controllers
parentc710f90a36f09cdaed1728e12b9ee455e9c850e7 (diff)
downloadPeerTube-2ad429529c5820d13df698dda17a313c2d383daf.tar.gz
PeerTube-2ad429529c5820d13df698dda17a313c2d383daf.tar.zst
PeerTube-2ad429529c5820d13df698dda17a313c2d383daf.zip
Add indentation in json configuration file generated by the admin
interface
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/config.ts2
1 files changed, 1 insertions, 1 deletions
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,
116 toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota 116 toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota
117 delete toUpdate.user.videoQuota 117 delete toUpdate.user.videoQuota
118 118
119 await writeFilePromise(CONFIG.CUSTOM_FILE, JSON.stringify(toUpdateJSON)) 119 await writeFilePromise(CONFIG.CUSTOM_FILE, JSON.stringify(toUpdateJSON, undefined, 2))
120 120
121 reloadConfig() 121 reloadConfig()
122 122