Skip to content

Commit

Permalink
fix: 이미지 여러개 반환 쿼리문 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
haroya01 committed Sep 22, 2023
1 parent f6a91e3 commit ce67112
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
@Repository
public interface ImageRepository extends JpaRepository<Image, Long> {

@Query(value = "select image_url from image where auction_id = :id", nativeQuery = true)
@Query(value = "SELECT DISTINCT * FROM Image where auction_id = :id", nativeQuery = true)
List<Image> findImageByAuctionItemId(Long id);
}

0 comments on commit ce67112

Please sign in to comment.