1
0
Fork 0
peertube/server/helpers/custom-validators/video-redundancies.ts
2020-01-28 11:35:26 +01:00

12 lines
284 B
TypeScript

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