mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Prefer using Object.values
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user