ActivityPub-federated video streaming platform using P2P directly in your web browser
Don't check enum for video model
Chocobozzzc17ee0903ec3
diff --git a/server/models/video/video.ts b/server/models/video/video.tsindex d2efc25531..2b40225dd2 100644--- a/server/models/video/video.ts+++ b/server/models/video/video.ts@@ -43,11 +43,8 @@ import { peertubeTruncate } from '../../helpers/core-utils'import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc'import { isBooleanValid } from '../../helpers/custom-validators/misc'import {- isVideoCategoryValid,isVideoDescriptionValid,isVideoDurationValid,- isVideoLanguageValid,- isVideoLicenceValid,isVideoNameValid,isVideoPrivacyValid,isVideoStateValid,@@ -458,19 +455,16 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {@AllowNull(true)@Default(null)- @Is('VideoCategory', value => throwIfNotValid(value, isVideoCategoryValid, 'category', true))@Columncategory: number@AllowNull(true)@Default(null)- @Is('VideoLicence', value => throwIfNotValid(value, isVideoLicenceValid, 'licence', true))@Columnlicence: number@AllowNull(true)@Default(null)- @Is('VideoLanguage', value => throwIfNotValid(value, isVideoLanguageValid, 'language', true))@Column(DataType.STRING(CONSTRAINTS_FIELDS.VIDEOS.LANGUAGE.max))language: string