From aa5181cdfc698d2e0d39f09ddbd464708aa2d775 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 10 Mar 2024 16:44:05 +0000 Subject: [PATCH] use transactionalEntityManager --- packages/backend/src/core/activitypub/models/ApPersonService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/activitypub/models/ApPersonService.ts b/packages/backend/src/core/activitypub/models/ApPersonService.ts index 545a8af4ec..f315e49a54 100644 --- a/packages/backend/src/core/activitypub/models/ApPersonService.ts +++ b/packages/backend/src/core/activitypub/models/ApPersonService.ts @@ -411,7 +411,7 @@ export class ApPersonService implements OnModuleInit { [person.publicKey.id, person.publicKey], ]); - await this.userPublickeysRepository.save(Array.from(publicKeys.values(), key => ({ + await transactionalEntityManager.save(Array.from(publicKeys.values(), key => new MiUserPublickey({ keyId: key.id, userId: user!.id, keyPem: key.publicKeyPem,