]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video-file.ts
Fix refreshing external video attributes
[github/Chocobozzz/PeerTube.git] / server / models / video / video-file.ts
index 0887a37384fa8f846bc799a42706a115587801be..f040803b9a0240d2156df0dc073e0609f237b3fe 100644 (file)
@@ -66,8 +66,8 @@ export class VideoFileModel extends Model<VideoFileModel> {
   @Column
   infoHash: string
 
-  @AllowNull(true)
-  @Default(null)
+  @AllowNull(false)
+  @Default(-1)
   @Is('VideoFileFPS', value => throwIfNotValid(value, isVideoFPSResolutionValid, 'fps'))
   @Column
   fps: number