Skip to content

Commit 1029990

Browse files
Merge pull request #410 from Podo-Store/develop
[FIX] 조회수 카운팅 로직 수정
2 parents 2bfdfb7 + e5accf1 commit 1029990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/PodoeMarket/podoemarket/common/repository/ProductRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ List<ProductEntity> findAllValidPlays(
5353
void decrementLikeCount(@Param("productId") UUID productId);
5454

5555
@Modifying
56-
@Query("update ProductEntity p set p.viewCount = COALESCE(p.viewCount, 0) + :delta where p.id = :id")
56+
@Query("update ProductEntity p set p.viewCount = COALESCE(p.viewCount,0) + :delta where p.id = :id")
5757
void incrementViewCount(@Param("id") UUID id, @Param("delta") long delta);
5858
}

0 commit comments

Comments
 (0)