X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Factivitypub%2Factors%2Fupdater.ts;h=5a92e7a2241cc6c8fbfc129ce7f50e66f244d7be;hb=823c34c07fc0df81110098ee1032e9d3ed70b662;hp=73bdf1edc9ea9ed4fa3e3ab44024aaab38295731;hpb=81f14b911211be065448e92bcc253f470c5ff2a9;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/activitypub/actors/updater.ts b/server/lib/activitypub/actors/updater.ts index 73bdf1edc..5a92e7a22 100644 --- a/server/lib/activitypub/actors/updater.ts +++ b/server/lib/activitypub/actors/updater.ts @@ -52,11 +52,11 @@ export class APActorUpdater { logger.info('Remote account %s updated', this.actorObject.url) } catch (err) { if (this.actor !== undefined) { - resetSequelizeInstance(this.actor) + await resetSequelizeInstance(this.actor) } if (this.accountOrChannel !== undefined) { - resetSequelizeInstance(this.accountOrChannel) + await resetSequelizeInstance(this.accountOrChannel) } // This is just a debug because we will retry the insert