PeerTube/server/helpers/custom-validators/video-channel-syncs.ts

7 lines
241 B
TypeScript

import { VIDEO_CHANNEL_SYNC_STATE } from '@server/initializers/constants'
import { exists } from './misc'
export function isVideoChannelSyncStateValid (value: any) {
return exists(value) && VIDEO_CHANNEL_SYNC_STATE[value] !== undefined
}