aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/checker-before-init.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/checker-before-init.ts')
-rw-r--r--server/initializers/checker-before-init.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/checker-before-init.ts b/server/initializers/checker-before-init.ts
index 3e1d2c589..ef12b3eea 100644
--- a/server/initializers/checker-before-init.ts
+++ b/server/initializers/checker-before-init.ts
@@ -1,6 +1,5 @@
1import * as config from 'config' 1import * as config from 'config'
2import { promisify0 } from '../helpers/core-utils' 2import { promisify0 } from '../helpers/core-utils'
3import { isArray } from '../helpers/custom-validators/misc'
4 3
5// ONLY USE CORE MODULES IN THIS FILE! 4// ONLY USE CORE MODULES IN THIS FILE!
6 5
@@ -42,7 +41,8 @@ function checkMissedConfig () {
42 } 41 }
43 42
44 const redundancyVideos = config.get<any>('redundancy.videos.strategies') 43 const redundancyVideos = config.get<any>('redundancy.videos.strategies')
45 if (isArray(redundancyVideos)) { 44
45 if (Array.isArray(redundancyVideos)) {
46 for (const r of redundancyVideos) { 46 for (const r of redundancyVideos) {
47 if (!r.size) miss.push('redundancy.videos.strategies.size') 47 if (!r.size) miss.push('redundancy.videos.strategies.size')
48 if (!r.min_lifetime) miss.push('redundancy.videos.strategies.min_lifetime') 48 if (!r.min_lifetime) miss.push('redundancy.videos.strategies.min_lifetime')