aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/checker.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/checker.ts')
-rw-r--r--server/initializers/checker.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/initializers/checker.ts b/server/initializers/checker.ts
index 29f4f3036..b9dc1e725 100644
--- a/server/initializers/checker.ts
+++ b/server/initializers/checker.ts
@@ -52,11 +52,11 @@ function checkConfig () {
52 if (filtered.length !== redundancyVideos.length) { 52 if (filtered.length !== redundancyVideos.length) {
53 return 'Redundancy video entries should have unique strategies' 53 return 'Redundancy video entries should have unique strategies'
54 } 54 }
55 }
56 55
57 const recentlyAddedStrategy = redundancyVideos.find(r => r.strategy === 'recently-added') as RecentlyAddedStrategy 56 const recentlyAddedStrategy = redundancyVideos.find(r => r.strategy === 'recently-added') as RecentlyAddedStrategy
58 if (recentlyAddedStrategy && isNaN(recentlyAddedStrategy.minViews)) { 57 if (recentlyAddedStrategy && isNaN(recentlyAddedStrategy.minViews)) {
59 return 'Min views in recently added strategy is not a number' 58 return 'Min views in recently added strategy is not a number'
59 }
60 } 60 }
61 61
62 return null 62 return null