Prefer using Object.values

This commit is contained in:
Chocobozzz
2022-08-17 15:36:03 +02:00
parent bbd5aa7ead
commit 690bb8f9f3
17 changed files with 48 additions and 48 deletions

View File

@@ -1,7 +1,7 @@
import config from 'config'
import { uniq } from 'lodash'
import { URL } from 'url'
import { getFFmpegVersion } from '@server/helpers/ffmpeg'
import { uniqify } from '@shared/core-utils'
import { VideoRedundancyConfigFilter } from '@shared/models/redundancy/video-redundancy-config-filter.type'
import { RecentlyAddedStrategy } from '../../shared/models/redundancy'
import { isProdInstance, parseSemVersion } from '../helpers/core-utils'
@@ -141,7 +141,7 @@ function checkLocalRedundancyConfig () {
}
}
const filtered = uniq(redundancyVideos.map(r => r.strategy))
const filtered = uniqify(redundancyVideos.map(r => r.strategy))
if (filtered.length !== redundancyVideos.length) {
throw new Error('Redundancy video entries should have unique strategies')
}