})
export class VideoLiveModel extends Model<VideoLiveModel> {
- @AllowNull(false)
+ @AllowNull(true)
@Column(DataType.STRING)
streamKey: string
+ @AllowNull(false)
+ @Column
+ saveReplay: boolean
+
@CreatedAt
createdAt: Date
toFormattedJSON (): LiveVideo {
return {
rtmpUrl: WEBSERVER.RTMP_URL,
- streamKey: this.streamKey
+ streamKey: this.streamKey,
+ saveReplay: this.saveReplay
}
}
}