Skip to content

Commit

Permalink
Merge pull request #101 from jurumarble/dev
Browse files Browse the repository at this point in the history
refactor : 음식점 조회시 keyword= 빈문자열이 올때도 음식점 조회가 제대로 이루어지도로 리팩토링
  • Loading branch information
alsduq1117 authored Oct 14, 2023
2 parents 3c45bce + 8c21e58 commit cbeaf5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class TourApiDataManager {


public RestaurantListDto getRestaurantInfoList(String keyword, Region region, int page) {
return (keyword != null)
return (keyword != null && !keyword.isEmpty())
? tourApiService.getRestaurantInfoByKeyWord(keyword, region.getCode(), page)
: tourApiService.getRestaurantInfo(region.getCode(), page);
}
Expand Down

0 comments on commit cbeaf5d

Please sign in to comment.