fix: 古いキャッシュを使うのを修正 (#13453)

This commit is contained in:
tamaina
2024-02-25 12:36:10 +09:00
committed by GitHub
parent 792168fdfa
commit 2c6f25b710
8 changed files with 28 additions and 28 deletions

View File

@@ -129,10 +129,12 @@ export class CacheService implements OnApplicationShutdown {
switch (type) {
case 'userChangeSuspendedState':
case 'userChangeDeletedState':
case 'remoteUserUpdated': {
case 'remoteUserUpdated':
case 'localUserUpdated': {
const user = await this.usersRepository.findOneBy({ id: body.id });
if (user == null) {
this.userByIdCache.delete(body.id);
this.localUserByIdCache.delete(body.id);
for (const [k, v] of this.uriPersonCache.cache.entries()) {
if (v.value?.id === body.id) {
this.uriPersonCache.delete(k);