Remove redundant thumbnail save

pull/6266/head
Chocobozzz 2024-02-26 16:35:51 +01:00
parent 5f3009d8e9
commit 466acae1e5
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 0 additions and 4 deletions

View File

@ -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)