diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/initializers/checker.ts | 8 | ||||
-rw-r--r-- | server/initializers/constants.ts | 2 |
2 files changed, 5 insertions, 5 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 |
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 02363352e..fa9093918 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -660,7 +660,7 @@ if (isTestInstance() === true) { | |||
660 | 660 | ||
661 | CACHE.VIDEO_CAPTIONS.MAX_AGE = 3000 | 661 | CACHE.VIDEO_CAPTIONS.MAX_AGE = 3000 |
662 | MEMOIZE_TTL.OVERVIEWS_SAMPLE = 1 | 662 | MEMOIZE_TTL.OVERVIEWS_SAMPLE = 1 |
663 | ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS = '0' | 663 | ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS = '0ms' |
664 | } | 664 | } |
665 | 665 | ||
666 | updateWebserverConfig() | 666 | updateWebserverConfig() |