Skip to content

Commit

Permalink
Update BoothService.java
Browse files Browse the repository at this point in the history
  • Loading branch information
gkfktkrh153 authored Sep 13, 2023
1 parent a226684 commit d1b7d62
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ public BoothRes getBooth(Long id, String ipAddress) {
@Transactional
public BoothRes getBoothQuery(Long id, String ipAddress) {
Booth booth = boothRepository.findById(id).orElseThrow(() -> new NotFoundException(NOT_FOUND_BOOTH));
if(redisService.isDuplicateAccess(ipAddress, "Booth_" + booth.getId())) {
booth.increaseViewCount(1L);
}

booth.increaseViewCount(1L);

return BoothRes.of(booth);
}

Expand Down

0 comments on commit d1b7d62

Please sign in to comment.