better error handling of this.userPublickeysRepository.delete

This commit is contained in:
tamaina 2024-07-17 17:57:45 +09:00
parent 44f0064301
commit 09b2e71e62

View file

@ -589,9 +589,11 @@ export class ApPersonService implements OnModuleInit {
this.userPublickeysRepository.delete({ this.userPublickeysRepository.delete({
keyId: Not(In(Array.from(publicKeys.keys()))), keyId: Not(In(Array.from(publicKeys.keys()))),
userId: exist.id, userId: exist.id,
}).catch(err => {
this.logger.error('something happened while deleting remote user public keys:', { userId: exist.id, err });
}); });
} catch (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; let _description: string | null = null;