diff --git a/src/main/java/team7/inplace/place/application/PlaceService.java b/src/main/java/team7/inplace/place/application/PlaceService.java index c8b061ab..0fb0161f 100644 --- a/src/main/java/team7/inplace/place/application/PlaceService.java +++ b/src/main/java/team7/inplace/place/application/PlaceService.java @@ -25,6 +25,7 @@ import team7.inplace.place.application.dto.LikedPlaceInfo; import team7.inplace.place.application.dto.PlaceDetailInfo; import team7.inplace.place.application.dto.PlaceInfo; +import team7.inplace.place.domain.Category; import team7.inplace.place.domain.Place; import team7.inplace.place.persistence.PlaceRepository; import team7.inplace.placeMessage.application.command.PlaceMessageCommand; @@ -55,7 +56,10 @@ public Page getPlacesWithinRadius( // categories와 influencers 필터 처리 List categoryFilters = placesFilterParamsCommand.isCategoryFilterExists() - ? Arrays.stream(placesFilterParamsCommand.categories().split(",")).toList() + ? Arrays.stream(placesFilterParamsCommand.categories().split(",")) + .map(Category::of) + .map(Category::name) + .toList() : null; List influencerFilters = placesFilterParamsCommand.isInfluencerFilterExists() diff --git a/src/main/java/team7/inplace/place/domain/Category.java b/src/main/java/team7/inplace/place/domain/Category.java index 8469478e..faa42096 100644 --- a/src/main/java/team7/inplace/place/domain/Category.java +++ b/src/main/java/team7/inplace/place/domain/Category.java @@ -17,7 +17,7 @@ public enum Category { public static Category of(String name) { for (Category category : values()) { - if (category.name.equals(name)) { + if (category.name.equalsIgnoreCase(name) || category.name().equalsIgnoreCase(name)) { return category; } }