Skip to content

Commit

Permalink
hotfix: timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
doxxx93 committed Feb 21, 2024
1 parent b07332b commit cd1bb7a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ public void addPaintToFollowersTimeline(List<Long> followerIds, Long paintId) {

public List<Long> getFollowingTimelinePaintIds(final Long userId) {
final String key = RedisKeyUtil.constructKey(FOLLOWER_PAINT_TIMELINE_PREFIX.getKey(), userId);
return Optional.ofNullable(redistemplate.opsForList().range(key, 1, -1))
return Optional.ofNullable(redistemplate.opsForList().range(key, 0, -1))
.orElse(List.of())
.stream()
.map(Long::valueOf)
.map(Long::parseLong)
.toList();
}
}

0 comments on commit cd1bb7a

Please sign in to comment.