Skip to content

Commit

Permalink
Merge pull request #68 from TEAM-DHS/fix/heart
Browse files Browse the repository at this point in the history
[FIX] 찜 취소 시 찜 목록에서 삭제하도록 수정
  • Loading branch information
mingulmangul authored Nov 27, 2023
2 parents f7388d3 + ead93ad commit 0171aaa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ List<Program> findTop3ByCategoryAndIsOpenAndDeadlineAfterAndProgramIdNotOrderByD

Page<Program> findAllByHost(Member host, Pageable pageable);

@Query(value = "select p from Program p join fetch Heart h on h.program=p where h.member=?1")
@Query(value = "select p from Program p join fetch Heart h on h.program=p where h.member=?1 and h.exist=true")
Page<Program> findAllProgramLiked(Member member, Pageable pageable);

List<Program> findTop5ByIsOpenAndDeadlineAfterOrderByLikeNumberDesc(Boolean isOpen, LocalDateTime deadline);
Expand Down

0 comments on commit 0171aaa

Please sign in to comment.