From 09b2e71e62179ff102120ce478ec7efa1ffbf111 Mon Sep 17 00:00:00 2001 From: tamaina Date: Wed, 17 Jul 2024 17:57:45 +0900 Subject: [PATCH] better error handling of this.userPublickeysRepository.delete --- .../backend/src/core/activitypub/models/ApPersonService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/core/activitypub/models/ApPersonService.ts b/packages/backend/src/core/activitypub/models/ApPersonService.ts index bea9d02abd..c41fc713d5 100644 --- a/packages/backend/src/core/activitypub/models/ApPersonService.ts +++ b/packages/backend/src/core/activitypub/models/ApPersonService.ts @@ -589,9 +589,11 @@ export class ApPersonService implements OnModuleInit { this.userPublickeysRepository.delete({ keyId: Not(In(Array.from(publicKeys.keys()))), userId: exist.id, + }).catch(err => { + this.logger.error('something happened while deleting remote user public keys:', { userId: exist.id, err }); }); } catch (err) { - this.logger.error('something happened while updating remote user public keys:', { err }); + this.logger.error('something happened while updating remote user public keys:', { userId: exist.id, err }); } let _description: string | null = null;