From 9853a4f3bdf39e2e7b05765a5099e4d2554b1d2c Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Fri, 6 Jun 2025 02:14:20 -0400 Subject: [PATCH] use addMany instead of setMany when populating quantum caches from DB --- packages/backend/src/core/CacheService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/CacheService.ts b/packages/backend/src/core/CacheService.ts index 6e979130a0..00d97c7e1d 100644 --- a/packages/backend/src/core/CacheService.ts +++ b/packages/backend/src/core/CacheService.ts @@ -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;