mirror of https://github.com/Chocobozzz/PeerTube
Remove redundant thumbnail save
parent
5f3009d8e9
commit
466acae1e5
|
@ -49,15 +49,11 @@ export class APVideoUpdater extends APVideoAbstractBuilder {
|
|||
try {
|
||||
const channelActor = await this.getOrCreateVideoChannelFromVideoObject()
|
||||
|
||||
const thumbnailModel = await this.setThumbnail(this.video)
|
||||
|
||||
this.checkChannelUpdateOrThrow(channelActor)
|
||||
|
||||
const oldState = this.video.state
|
||||
const videoUpdated = await this.updateVideo(channelActor.VideoChannel, undefined, overrideTo)
|
||||
|
||||
if (thumbnailModel) await videoUpdated.addAndSaveThumbnail(thumbnailModel)
|
||||
|
||||
await runInReadCommittedTransaction(async t => {
|
||||
await this.setWebVideoFiles(videoUpdated, t)
|
||||
await this.setStreamingPlaylists(videoUpdated, t)
|
||||
|
|
Loading…
Reference in New Issue