]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/helpers/custom-validators/video-channel-syncs.ts
c5a9afa9670e81a3e79212a421a5a0b759c111ff
[github/Chocobozzz/PeerTube.git] / server / helpers / custom-validators / video-channel-syncs.ts
1 import { VIDEO_CHANNEL_SYNC_STATE } from '@server/initializers/constants'
2 import { exists } from './misc'
3
4 export function isVideoChannelSyncStateValid (value: any) {
5 return exists(value) && VIDEO_CHANNEL_SYNC_STATE[value] !== undefined
6 }