PeerTube/server/helpers/custom-validators/video-redundancies.ts

13 lines
284 B
TypeScript
Raw Normal View History

2020-01-10 03:11:28 -06:00
import { exists } from './misc'
function isVideoRedundancyTarget (value: any) {
return exists(value) &&
(value === 'my-videos' || value === 'remote-videos')
}
// ---------------------------------------------------------------------------
export {
isVideoRedundancyTarget
}