mirror of https://github.com/Chocobozzz/PeerTube
Correctly handle optional replay setting
parent
18570bee99
commit
64cb55fcb1
|
@ -197,7 +197,7 @@ async function addLiveVideo (req: express.Request, res: express.Response) {
|
||||||
|
|
||||||
if (videoLive.saveReplay) {
|
if (videoLive.saveReplay) {
|
||||||
const replaySettings = new VideoLiveReplaySettingModel({
|
const replaySettings = new VideoLiveReplaySettingModel({
|
||||||
privacy: videoInfo.replaySettings.privacy || videoCreated.privacy
|
privacy: videoInfo.replaySettings?.privacy ?? videoCreated.privacy
|
||||||
})
|
})
|
||||||
await replaySettings.save(sequelizeOptions)
|
await replaySettings.save(sequelizeOptions)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue