From 823c34c07fc0df81110098ee1032e9d3ed70b662 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 11 May 2023 15:02:53 +0200 Subject: Fix reset sequelize instance --- server/lib/activitypub/videos/updater.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/lib/activitypub/videos') 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 { return videoUpdated } catch (err) { - this.catchUpdateError(err) + await this.catchUpdateError(err) } } @@ -154,9 +154,9 @@ export class APVideoUpdater extends APVideoAbstractBuilder { videoUpdated.VideoLive = null } - private catchUpdateError (err: Error) { + private async catchUpdateError (err: Error) { if (this.video !== undefined) { - resetSequelizeInstance(this.video) + await resetSequelizeInstance(this.video) } // This is just a debug because we will retry the insert -- cgit v1.2.3