diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-27 17:19:22 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-27 17:19:22 +0100 |
commit | 509cd56aca9bb226dec126abfb006e00302753ad (patch) | |
tree | ed6b8492e9bc6b70d986845634830d4a7c1e7100 /server/controllers/api | |
parent | 2c29ad4f3b736912ae769a288c4795dce40e388d (diff) | |
download | PeerTube-509cd56aca9bb226dec126abfb006e00302753ad.tar.gz PeerTube-509cd56aca9bb226dec126abfb006e00302753ad.tar.zst PeerTube-509cd56aca9bb226dec126abfb006e00302753ad.zip |
Add warning in production.yaml
To avoid confusion with the local-production.json file
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/config.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index 8cfaf3e29..47b91cd94 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -114,6 +114,7 @@ async function updateCustomConfig (req: express.Request, res: express.Response, | |||
114 | // Need to change the videoQuota key a little bit | 114 | // Need to change the videoQuota key a little bit |
115 | const toUpdateJSON = omit(toUpdate, 'videoQuota') | 115 | const toUpdateJSON = omit(toUpdate, 'videoQuota') |
116 | toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota | 116 | toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota |
117 | delete toUpdate.user.videoQuota | ||
117 | 118 | ||
118 | await writeFilePromise(CONFIG.CUSTOM_FILE, JSON.stringify(toUpdateJSON)) | 119 | await writeFilePromise(CONFIG.CUSTOM_FILE, JSON.stringify(toUpdateJSON)) |
119 | 120 | ||