]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video-live.ts
Add ability to save live replay
[github/Chocobozzz/PeerTube.git] / server / models / video / video-live.ts
index a1dd80d3c74bfe0d9cb6e5ce12f221ed2ad707e7..345918cb9d6e0dad4b5b8848ecad9e46d54d7750 100644 (file)
@@ -34,10 +34,6 @@ export class VideoLiveModel extends Model<VideoLiveModel> {
   @Column(DataType.STRING)
   streamKey: string
 
-  @AllowNull(false)
-  @Column
-  perpetualLive: boolean
-
   @AllowNull(false)
   @Column
   saveReplay: boolean
@@ -98,7 +94,8 @@ export class VideoLiveModel extends Model<VideoLiveModel> {
   toFormattedJSON (): LiveVideo {
     return {
       rtmpUrl: WEBSERVER.RTMP_URL,
-      streamKey: this.streamKey
+      streamKey: this.streamKey,
+      saveReplay: this.saveReplay
     }
   }
 }