aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/video-redundancies.ts
blob: 50a559c4fca33d1f39ef92eb3e14af567c87df53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { exists } from './misc'

function isVideoRedundancyTarget (value: any) {
  return exists(value) &&
    (value === 'my-videos' || value === 'remote-videos')
}

// ---------------------------------------------------------------------------

export {
  isVideoRedundancyTarget
}