]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/helpers/custom-validators/video-channel-syncs.ts
Translated using Weblate (Japanese)
[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 }