Skip to content

Commit

Permalink
[hotfix] 홈 피드 인기 여행 후기 국내/해외 조회 쿼리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jo0oy committed Feb 4, 2024
1 parent 62ecd03 commit 06382e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public List<TripRecord> findTopTripRecordsDomestic(int size) {

return queryFactory
.selectFrom(tripRecord)
.where(tripRecord.countries.containsIgnoreCase(Country.KOREA.name()))
.where(tripRecord.countries.containsIgnoreCase(Country.KOREA.getDescription()))
.orderBy(tripRecord.averageRating.desc(), tripRecord.storeCount.desc())
.limit(size)
.fetch();
Expand All @@ -253,7 +253,7 @@ public List<TripRecord> findTopTripRecordsOverseas(int size) {

return queryFactory
.selectFrom(tripRecord)
.where(tripRecord.countries.containsIgnoreCase(Country.KOREA.name()).not())
.where(tripRecord.countries.containsIgnoreCase(Country.KOREA.getDescription()).not())
.orderBy(tripRecord.averageRating.desc(), tripRecord.storeCount.desc())
.limit(size)
.fetch();
Expand Down

0 comments on commit 06382e7

Please sign in to comment.