mirror of
https://git.boykissers.com/pawkey/pawkey-sk.git
synced 2025-12-20 04:04:16 +00:00
use addMany instead of setMany when populating quantum caches from DB
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user