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

13 lines
287 B
TypeScript

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