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