Skip to content

Commit

Permalink
Merge pull request #91 from gutanbug/dev
Browse files Browse the repository at this point in the history
fix : 보너스 미션 조회 안되는 오류 수정
  • Loading branch information
gutanbug authored Apr 8, 2024
2 parents 2d7bf5d + e451212 commit 0675154
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ public interface MissionRepository extends JpaRepository<Mission, Long>, JpaSpec

Page<Mission> findAll(Specification<Mission> spec, Pageable pageable);

@Query("select m from Mission m where m.id = (select bm.mission.id from BonusMission bm where bm.mission.id = m.id)")
@Query("select distinct m from Mission m where m.id in (select bm.mission.id from BonusMission bm where bm.mission.id = m.id)")
Page<Mission> findAllWithBonusMission(Specification<Mission> spec, Pageable pageable);
}

0 comments on commit 0675154

Please sign in to comment.