Skip to content

Commit

Permalink
fix: followerId -> followeeId
Browse files Browse the repository at this point in the history
  • Loading branch information
hideki0403 committed Nov 23, 2023
1 parent 9c41473 commit d1a8d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/CacheService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class CacheService implements OnApplicationShutdown {
this.userChannelFollowingsCache = new RedisKVCache<Set<string>>(this.redisClient, 'userChannelFollowings', {
lifetime: 1000 * 60 * 30, // 30m
memoryCacheLifetime: 1000 * 60, // 1m
fetcher: (key) => this.channelFollowingsRepository.find({ where: { followeeId: key }, select: ['followerId'] }).then(xs => new Set(xs.map(x => x.followerId))),
fetcher: (key) => this.channelFollowingsRepository.find({ where: { followerId: key }, select: ['followeeId'] }).then(xs => new Set(xs.map(x => x.followeeId))),
toRedisConverter: (value) => JSON.stringify(Array.from(value)),
fromRedisConverter: (value) => new Set(JSON.parse(value)),
});
Expand Down

0 comments on commit d1a8d91

Please sign in to comment.