diff options
author | Chocobozzz <me@florianbigard.com> | 2018-12-04 09:34:29 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-12-04 10:08:45 +0100 |
commit | f9a971c671d5a8b88f420a86656a788575105598 (patch) | |
tree | 71bfda2e46e6ee9537a5c2eb34485cfe2dc322db /server/initializers/constants.ts | |
parent | 5c94c38d18a02864b6f384bcd829a0d3f2d86c4a (diff) | |
download | PeerTube-f9a971c671d5a8b88f420a86656a788575105598.tar.gz PeerTube-f9a971c671d5a8b88f420a86656a788575105598.tar.zst PeerTube-f9a971c671d5a8b88f420a86656a788575105598.zip |
Update dependencies
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index aa243859c..8a8bcd126 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -773,7 +773,7 @@ function buildVideosRedundancy (objs: any[]): VideosRedundancy[] { | |||
773 | if (!objs) return [] | 773 | if (!objs) return [] |
774 | 774 | ||
775 | return objs.map(obj => { | 775 | return objs.map(obj => { |
776 | return Object.assign(obj, { | 776 | return Object.assign({}, obj, { |
777 | minLifetime: parseDuration(obj.min_lifetime), | 777 | minLifetime: parseDuration(obj.min_lifetime), |
778 | size: bytes.parse(obj.size), | 778 | size: bytes.parse(obj.size), |
779 | minViews: obj.min_views | 779 | minViews: obj.min_views |