Skip to content

Commit d1b7d62

Browse files
authored
Update BoothService.java
1 parent a226684 commit d1b7d62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/festival/domain/booth/service/BoothService.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ public BoothRes getBooth(Long id, String ipAddress) {
7575
@Transactional
7676
public BoothRes getBoothQuery(Long id, String ipAddress) {
7777
Booth booth = boothRepository.findById(id).orElseThrow(() -> new NotFoundException(NOT_FOUND_BOOTH));
78-
if(redisService.isDuplicateAccess(ipAddress, "Booth_" + booth.getId())) {
79-
booth.increaseViewCount(1L);
80-
}
78+
79+
booth.increaseViewCount(1L);
80+
8181
return BoothRes.of(booth);
8282
}
8383

0 commit comments

Comments
 (0)