Skip to content

Commit

Permalink
[fix] fix query statement
Browse files Browse the repository at this point in the history
  • Loading branch information
kgy1008 committed Jul 16, 2024
1 parent 032f614 commit c995043
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server-yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public interface HeartRepository extends JpaRepository<Heart, Long> {
boolean existsByUserAndStore(User user, Store store);
void deleteByUserAndStore(User user, Store store);

@Query("select h from Heart h join fetch h.store s join fetch s.storeImages " +
@Query("select h from Heart h join fetch h.store s join fetch s.images " +
"where h.user.id = :userId and s.isDeleted = false order by h.id desc")
List<Heart> findHeartedStoresByUserId(Long userId);
}

0 comments on commit c995043

Please sign in to comment.