+import { Transaction } from 'sequelize'
import {
- BeforeDestroy,
AllowNull,
+ BeforeDestroy,
BelongsTo,
Column,
CreatedAt,
ReplaySetting: VideoLiveReplaySettingModel
@BeforeDestroy
- static deleteReplaySetting (instance: VideoLiveModel) {
+ static deleteReplaySetting (instance: VideoLiveModel, options: { transaction: Transaction }) {
return VideoLiveReplaySettingModel.destroy({
where: {
id: instance.replaySettingId
- }
+ },
+ transaction: options.transaction
})
}
streamKey: this.streamKey,
rtmpUrl: CONFIG.LIVE.RTMP.ENABLED
- ? WEBSERVER.RTMP_URL
+ ? WEBSERVER.RTMP_BASE_LIVE_URL
: null,
rtmpsUrl: CONFIG.LIVE.RTMPS.ENABLED
- ? WEBSERVER.RTMPS_URL
+ ? WEBSERVER.RTMPS_BASE_LIVE_URL
: null
}
}