Remove unnecessary await
This commit is contained in:
parent
307b3db45e
commit
e54bd458c1
|
@ -23,7 +23,7 @@ export class APVideoCreator extends APVideoAbstractBuilder {
|
||||||
const channelActor = await this.getOrCreateVideoChannelFromVideoObject()
|
const channelActor = await this.getOrCreateVideoChannelFromVideoObject()
|
||||||
const channel = channelActor.VideoChannel
|
const channel = channelActor.VideoChannel
|
||||||
|
|
||||||
const videoData = await getVideoAttributesFromObject(channel, this.videoObject, this.videoObject.to)
|
const videoData = getVideoAttributesFromObject(channel, this.videoObject, this.videoObject.to)
|
||||||
const video = VideoModel.build(videoData) as MVideoThumbnail
|
const video = VideoModel.build(videoData) as MVideoThumbnail
|
||||||
|
|
||||||
const promiseThumbnail = this.tryToGenerateThumbnail(video)
|
const promiseThumbnail = this.tryToGenerateThumbnail(video)
|
||||||
|
|
Loading…
Reference in New Issue