aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/video-channel-syncs.ts
blob: c5a9afa9670e81a3e79212a421a5a0b759c111ff (plain) (blame)
1
2
3
4
5
6
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
}