diff options
Diffstat (limited to 'server/lib/activitypub/videos')
-rw-r--r-- | server/lib/activitypub/videos/updater.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/activitypub/videos/updater.ts b/server/lib/activitypub/videos/updater.ts index 3677dc3bb..6ddd2301b 100644 --- a/server/lib/activitypub/videos/updater.ts +++ b/server/lib/activitypub/videos/updater.ts | |||
@@ -88,7 +88,7 @@ export class APVideoUpdater extends APVideoAbstractBuilder { | |||
88 | 88 | ||
89 | return videoUpdated | 89 | return videoUpdated |
90 | } catch (err) { | 90 | } catch (err) { |
91 | this.catchUpdateError(err) | 91 | await this.catchUpdateError(err) |
92 | } | 92 | } |
93 | } | 93 | } |
94 | 94 | ||
@@ -154,9 +154,9 @@ export class APVideoUpdater extends APVideoAbstractBuilder { | |||
154 | videoUpdated.VideoLive = null | 154 | videoUpdated.VideoLive = null |
155 | } | 155 | } |
156 | 156 | ||
157 | private catchUpdateError (err: Error) { | 157 | private async catchUpdateError (err: Error) { |
158 | if (this.video !== undefined) { | 158 | if (this.video !== undefined) { |
159 | resetSequelizeInstance(this.video) | 159 | await resetSequelizeInstance(this.video) |
160 | } | 160 | } |
161 | 161 | ||
162 | // This is just a debug because we will retry the insert | 162 | // This is just a debug because we will retry the insert |