mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-08 13:04:34 +00:00
fix refactoring mistake in CacheService.ts
This commit is contained in:
parent
e7feca8784
commit
51572b7314
1 changed files with 2 additions and 2 deletions
|
@ -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', {
|
||||||
|
|
Loading…
Add table
Reference in a new issue