とりあえずtryで囲っておく
This commit is contained in:
parent
e2b574a97c
commit
76487de5ed
|
@ -551,6 +551,9 @@ export class ApPersonService implements OnModuleInit {
|
|||
// Update user
|
||||
await this.usersRepository.update(exist.id, updates);
|
||||
|
||||
try {
|
||||
// Deleteアクティビティ受信時にもここが走ってsaveがuserforeign key制約エラーを吐くことがある
|
||||
// とりあえずtry-catchで囲っておく
|
||||
const publicKeys = new Map<string, IKey>();
|
||||
if (person.publicKey) {
|
||||
(person.additionalPublicKeys ?? []).forEach(key => publicKeys.set(key.id, key));
|
||||
|
@ -567,6 +570,9 @@ export class ApPersonService implements OnModuleInit {
|
|||
keyId: Not(In(Array.from(publicKeys.keys()))),
|
||||
userId: exist.id,
|
||||
});
|
||||
} catch (err) {
|
||||
this.logger.error('something happened while updating remote user public keys:', { err });
|
||||
}
|
||||
|
||||
let _description: string | null = null;
|
||||
|
||||
|
|
Loading…
Reference in a new issue