]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Remove unnecessary await
authorChocobozzz <me@florianbigard.com>
Tue, 15 Jun 2021 06:36:39 +0000 (08:36 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 15 Jun 2021 08:40:06 +0000 (10:40 +0200)
server/lib/activitypub/videos/shared/creator.ts

index 767bf06952e347dc31db0e233cfafc8684c7b433..ad3b889364ad40c56e640582ac955629f5a35c72 100644 (file)
@@ -23,7 +23,7 @@ export class APVideoCreator extends APVideoAbstractBuilder {
     const channelActor = await this.getOrCreateVideoChannelFromVideoObject()
     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 promiseThumbnail = this.tryToGenerateThumbnail(video)