diff --git a/src/main/java/EBus/EBusback/domain/mainpage/service/MainPageService.java b/src/main/java/EBus/EBusback/domain/mainpage/service/MainPageService.java index 3e4454a..76ee19f 100644 --- a/src/main/java/EBus/EBusback/domain/mainpage/service/MainPageService.java +++ b/src/main/java/EBus/EBusback/domain/mainpage/service/MainPageService.java @@ -49,7 +49,7 @@ public MainPageResDto getMainPage(){ } } - List allSuggestion = postRepository.findAllByIsSuggestionOrderByCreatedDate(Boolean.TRUE); + List allSuggestion = postRepository.findAllByIsSuggestionOrderByCreatedDate(true); List suggestionList = new ArrayList<>(); if (!(allSuggestion.isEmpty())){ if (allSuggestion.size()<3){ @@ -64,7 +64,7 @@ public MainPageResDto getMainPage(){ } } - List allAppreciation = postRepository.findAllByIsSuggestionOrderByCreatedDate(Boolean.FALSE); + List allAppreciation = postRepository.findAllByIsSuggestionOrderByCreatedDate(false); List appreciationList = new ArrayList<>(); if (!(allAppreciation.isEmpty())){ if(allAppreciation.size()<3){