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

13 lines
287 B
TypeScript
Raw Normal View History

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