Skip to content

Commit

Permalink
fix: isSuggestion 값 타입 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Soyeon-Cha committed Mar 17, 2024
1 parent 995f8ab commit d250ffa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public MainPageResDto getMainPage(){
}
}

List<Post> allSuggestion = postRepository.findAllByIsSuggestionOrderByCreatedDate(Boolean.TRUE);
List<Post> allSuggestion = postRepository.findAllByIsSuggestionOrderByCreatedDate(true);
List<MainPostResDto> suggestionList = new ArrayList<>();
if (!(allSuggestion.isEmpty())){
if (allSuggestion.size()<3){
Expand All @@ -64,7 +64,7 @@ public MainPageResDto getMainPage(){
}
}

List<Post> allAppreciation = postRepository.findAllByIsSuggestionOrderByCreatedDate(Boolean.FALSE);
List<Post> allAppreciation = postRepository.findAllByIsSuggestionOrderByCreatedDate(false);
List<MainPostResDto> appreciationList = new ArrayList<>();
if (!(allAppreciation.isEmpty())){
if(allAppreciation.size()<3){
Expand Down

0 comments on commit d250ffa

Please sign in to comment.