remove cached public keys after deletion
This commit is contained in:
parent
55df1ad10f
commit
78a75171c2
|
@ -176,9 +176,7 @@ export class ApDbResolverService implements OnApplicationShutdown {
|
||||||
public async refetchPublicKeyForApId(user: MiRemoteUser): Promise<MiUserPublickey | null> {
|
public async refetchPublicKeyForApId(user: MiRemoteUser): Promise<MiUserPublickey | null> {
|
||||||
await this.apPersonService.updatePerson(user.uri);
|
await this.apPersonService.updatePerson(user.uri);
|
||||||
const key = await this.userPublickeysRepository.findOneBy({ userId: user.id });
|
const key = await this.userPublickeysRepository.findOneBy({ userId: user.id });
|
||||||
if (key != null) {
|
this.publicKeyByUserIdCache.set(user.id, key);
|
||||||
await this.publicKeyByUserIdCache.set(user.id, key);
|
|
||||||
}
|
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue