X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Factivitypub%2Factors%2Fupdater.ts;h=5a92e7a2241cc6c8fbfc129ce7f50e66f244d7be;hb=823c34c07fc0df81110098ee1032e9d3ed70b662;hp=1379804606439b3b623ff59a96e90a3b786a068b;hpb=4565774669bc3c1b11cc726d577946953dbe53c5;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/activitypub/actors/updater.ts b/server/lib/activitypub/actors/updater.ts index 137980460..5a92e7a22 100644 --- a/server/lib/activitypub/actors/updater.ts +++ b/server/lib/activitypub/actors/updater.ts @@ -11,7 +11,7 @@ import { getImagesInfoFromObject } from './shared/object-to-model-attributes' export class APActorUpdater { - private accountOrChannel: MAccount | MChannel + private readonly accountOrChannel: MAccount | MChannel constructor ( private readonly actorObject: ActivityPubActor, @@ -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