fix refactoring mistake in CacheService.ts

This commit is contained in:
Hazelnoot 2025-06-09 11:26:21 -04:00
parent e7feca8784
commit 51572b7314

View file

@ -159,7 +159,7 @@ export class CacheService implements OnApplicationShutdown {
} }
group.set(f.followeeId, f); group.set(f.followeeId, f);
return groups; return groups;
}, {} as Map<string, Map<string, Omit<MiFollowing, 'isFollowerHibernated'>>>)), }, new Map<string, Map<string, Omit<MiFollowing, 'isFollowerHibernated'>>>)),
}); });
this.userFollowersCache = new QuantumKVCache<Map<string, Omit<MiFollowing, 'isFollowerHibernated'>>>(this.internalEventService, 'userFollowers', { this.userFollowersCache = new QuantumKVCache<Map<string, Omit<MiFollowing, 'isFollowerHibernated'>>>(this.internalEventService, 'userFollowers', {
@ -176,7 +176,7 @@ export class CacheService implements OnApplicationShutdown {
} }
group.set(f.followerId, f); group.set(f.followerId, f);
return groups; return groups;
}, {} as Map<string, Map<string, Omit<MiFollowing, 'isFollowerHibernated'>>>)), }, new Map<string, Map<string, Omit<MiFollowing, 'isFollowerHibernated'>>>)),
}); });
this.hibernatedUserCache = new QuantumKVCache<boolean>(this.internalEventService, 'hibernatedUsers', { this.hibernatedUserCache = new QuantumKVCache<boolean>(this.internalEventService, 'hibernatedUsers', {