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 10:11:28 +01:00
function isVideoRedundancyTarget (value: any) {
return exists(value) &&
(value === 'my-videos' || value === 'remote-videos')
}
// ---------------------------------------------------------------------------
export {
isVideoRedundancyTarget
}