diff options
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 7a3ec3874..54cd57619 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -881,6 +881,8 @@ function buildVideosExtname () { | |||
881 | function buildVideosRedundancy (objs: any[]): VideosRedundancy[] { | 881 | function buildVideosRedundancy (objs: any[]): VideosRedundancy[] { |
882 | if (!objs) return [] | 882 | if (!objs) return [] |
883 | 883 | ||
884 | if (!Array.isArray(objs)) return objs | ||
885 | |||
884 | return objs.map(obj => { | 886 | return objs.map(obj => { |
885 | return Object.assign({}, obj, { | 887 | return Object.assign({}, obj, { |
886 | minLifetime: parseDuration(obj.min_lifetime), | 888 | minLifetime: parseDuration(obj.min_lifetime), |