projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c710f90
)
Add indentation in json configuration file generated by the admin
author
Chocobozzz
<me@florianbigard.com>
Wed, 28 Feb 2018 08:55:00 +0000
(09:55 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Wed, 28 Feb 2018 08:55:00 +0000
(09:55 +0100)
interface
server/controllers/api/config.ts
patch
|
blob
|
history
diff --git
a/server/controllers/api/config.ts
b/server/controllers/api/config.ts
index 47b91cd94bf04459dcd8b3bf7829e228a1bbbd38..7ef0c19e3943462a1b718c2800de8e7688cd5995 100644
(file)
--- 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()