PeerTube/server/helpers/custom-validators/video-redundancies.ts
2020-01-28 11:35:26 +01:00

13 lines
284 B
TypeScript

import { exists } from './misc'
function isVideoRedundancyTarget (value: any) {
return exists(value) &&
(value === 'my-videos' || value === 'remote-videos')
}
// ---------------------------------------------------------------------------
export {
isVideoRedundancyTarget
}