diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-15 08:36:39 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-15 10:40:06 +0200 |
commit | e54bd458c1eec9a23730b3cc3c926568f3b02186 (patch) | |
tree | f155e704c2d0a7233df2ec0c9433e4f4d5d75691 /server/lib | |
parent | 307b3db45e7367a4c702c8d5881bfe6f7b8c5f1d (diff) | |
download | PeerTube-e54bd458c1eec9a23730b3cc3c926568f3b02186.tar.gz PeerTube-e54bd458c1eec9a23730b3cc3c926568f3b02186.tar.zst PeerTube-e54bd458c1eec9a23730b3cc3c926568f3b02186.zip |
Remove unnecessary await
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/activitypub/videos/shared/creator.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/videos/shared/creator.ts b/server/lib/activitypub/videos/shared/creator.ts index 767bf0695..ad3b88936 100644 --- a/server/lib/activitypub/videos/shared/creator.ts +++ b/server/lib/activitypub/videos/shared/creator.ts | |||
@@ -23,7 +23,7 @@ export class APVideoCreator extends APVideoAbstractBuilder { | |||
23 | const channelActor = await this.getOrCreateVideoChannelFromVideoObject() | 23 | const channelActor = await this.getOrCreateVideoChannelFromVideoObject() |
24 | const channel = channelActor.VideoChannel | 24 | const channel = channelActor.VideoChannel |
25 | 25 | ||
26 | const videoData = await getVideoAttributesFromObject(channel, this.videoObject, this.videoObject.to) | 26 | const videoData = getVideoAttributesFromObject(channel, this.videoObject, this.videoObject.to) |
27 | const video = VideoModel.build(videoData) as MVideoThumbnail | 27 | const video = VideoModel.build(videoData) as MVideoThumbnail |
28 | 28 | ||
29 | const promiseThumbnail = this.tryToGenerateThumbnail(video) | 29 | const promiseThumbnail = this.tryToGenerateThumbnail(video) |