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

6 lines
115 B
TypeScript

function isRatingValid (value: any) {
return value === 'like' || value === 'dislike'
}
export { isRatingValid }