From b5f2c743b2cc5a5362f6549f094acf6136d9475c Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Wed, 1 Oct 2025 11:36:36 -0400 Subject: [PATCH] remove dependency on UserEntityService from CacheService --- packages/backend/src/core/CacheService.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/backend/src/core/CacheService.ts b/packages/backend/src/core/CacheService.ts index a6a55f9497..bad4b93c11 100644 --- a/packages/backend/src/core/CacheService.ts +++ b/packages/backend/src/core/CacheService.ts @@ -11,7 +11,6 @@ import { MemoryKVCache, RedisKVCache } from '@/misc/cache.js'; import { QuantumKVCache } from '@/misc/QuantumKVCache.js'; import type { MiLocalUser, MiRemoteUser, MiUser } from '@/models/User.js'; import { DI } from '@/di-symbols.js'; -import { UserEntityService } from '@/core/entities/UserEntityService.js'; import { bindThis } from '@/decorators.js'; import type { InternalEventTypes } from '@/core/GlobalEventService.js'; import { InternalEventService } from '@/core/InternalEventService.js'; @@ -94,7 +93,6 @@ export class CacheService implements OnApplicationShutdown { @Inject(DI.instancesRepository) private readonly instancesRepository: InstancesRepository, - private userEntityService: UserEntityService, private readonly internalEventService: InternalEventService, private readonly utilityService: UtilityService, private readonly idService: IdService, @@ -374,7 +372,7 @@ export class CacheService implements OnApplicationShutdown { this.uriPersonCache.set(k, user); } } - if (this.userEntityService.isLocalUser(user)) { + if (isLocalUser(user)) { this.localUserByNativeTokenCache.set(user.token!, user); this.localUserByIdCache.set(user.id, user); }