Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ public class UpdateViewCountService {
@Transactional
@Async
public void updateViewCount(String key) {
log.info("updateViewCount Processing key: {} in thread: {}", key, Thread.currentThread().getName());
Long postId = redisUtils.getPostIdFromPostViewCountRedisKey(key);
Post post = postRepository.getById(postId);
postRepository.increaseViewCount(postId, redisService.getAndDelete(key));
log.info("updateViewCount Updated post id: {} with view count from key: {}", postId, key);
}
}
Loading