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

Fix tests

This commit is contained in:
Chocobozzz 2018-08-28 11:32:03 +02:00
parent bfcef50db9
commit 9ee92651f6
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 2 additions and 2 deletions

View file

@ -161,6 +161,7 @@ async function updateCustomConfig (req: express.Request, res: express.Response,
// camelCase to snake_case key
const toUpdateJSON = omit(toUpdate, 'user.videoQuota', 'instance.defaultClientRoute', 'instance.shortDescription', 'cache.videoCaptions')
toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota
toUpdateJSON.user['video_quota_daily'] = toUpdate.user.videoQuotaDaily
toUpdateJSON.instance['default_client_route'] = toUpdate.instance.defaultClientRoute
toUpdateJSON.instance['short_description'] = toUpdate.instance.shortDescription
toUpdateJSON.instance['default_nsfw_policy'] = toUpdate.instance.defaultNSFWPolicy