use addMany instead of setMany when populating quantum caches from DB

This commit is contained in:
Hazelnoot 2025-06-06 02:14:20 -04:00
parent b7624666d6
commit 9853a4f3bd

View file

@ -342,7 +342,7 @@ export class CacheService implements OnApplicationShutdown {
}
// Update cache to speed up future calls
await this.userFollowingsCache.setMany(toCache.entries());
this.userFollowingsCache.addMany(toCache);
}
return followings;
@ -395,7 +395,7 @@ export class CacheService implements OnApplicationShutdown {
}
// Update cache to speed up future calls
await this.userBlockedCache.setMany(toCache.entries());
this.userBlockedCache.addMany(toCache);
}
return blockers;