Skip to content

Commit

Permalink
[FEAT] 힌트 조회 시, 진행률 순으로 정렬(#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
eunsol-an committed Sep 23, 2024
1 parent 1e6b269 commit 657d35a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
public interface HintRepository extends JpaRepository<Hint, Long> {
boolean existsByThemeAndHintCode(Theme theme, String hintCode);

List<Hint> findAllByThemeId(Long themeId);
List<Hint> findAllByThemeIdOrderByProgress(Long themeId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void addHint(HintDto.AddHintRequest request) {
public List<HintDto.HintListResponse> getHintList(Long themeId) {
this.validateThemeAndShop(themeId);

List<Hint> hints = hintRepository.findAllByThemeId(themeId);
List<Hint> hints = hintRepository.findAllByThemeIdOrderByProgress(themeId);

Long shopId = SecurityUtil.getCurrentShopId();
return hints.stream().map(hint ->
Expand Down

0 comments on commit 657d35a

Please sign in to comment.