Skip to content

Commit

Permalink
Merge pull request #31 from EWHA-THON-E-BUS/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Soyeon-Cha authored Mar 17, 2024
2 parents aba13db + e2fa154 commit 5a8b7ac
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 5a8b7ac

Please sign in to comment.