1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Add warning in production.yaml

To avoid confusion with the local-production.json file
This commit is contained in:
Chocobozzz 2018-02-27 17:19:22 +01:00
parent 2c29ad4f3b
commit 509cd56aca
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 14 additions and 0 deletions

View file

@ -114,6 +114,7 @@ async function updateCustomConfig (req: express.Request, res: express.Response,
// Need to change the videoQuota key a little bit
const toUpdateJSON = omit(toUpdate, 'videoQuota')
toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota
delete toUpdate.user.videoQuota
await writeFilePromise(CONFIG.CUSTOM_FILE, JSON.stringify(toUpdateJSON))