better error handling of this.userPublickeysRepository.delete
This commit is contained in:
parent
44f0064301
commit
09b2e71e62
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue