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
|
// Update cache to speed up future calls
|
||||||
await this.userFollowingsCache.setMany(toCache.entries());
|
this.userFollowingsCache.addMany(toCache);
|
||||||
}
|
}
|
||||||
|
|
||||||
return followings;
|
return followings;
|
||||||
@@ -395,7 +395,7 @@ export class CacheService implements OnApplicationShutdown {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update cache to speed up future calls
|
// Update cache to speed up future calls
|
||||||
await this.userBlockedCache.setMany(toCache.entries());
|
this.userBlockedCache.addMany(toCache);
|
||||||
}
|
}
|
||||||
|
|
||||||
return blockers;
|
return blockers;
|
||||||
|
|||||||
Reference in New Issue
Block a user