Skip to content

Commit

Permalink
♻️ :: 리팩
Browse files Browse the repository at this point in the history
  • Loading branch information
jyk1029 committed Nov 27, 2023
1 parent 2fcd279 commit 72c8058
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SearchMapService(
fun execute(request: SearchFeedByMapRequest): List<FeedElement> {
val location = kakaoAddressFeign.queryAddressByXAndY(request.x, request.y).documents[0].address.region1depthName
return if (request.keyword == "") {
feedRepository.findAllBy()
feedRepository.findAllByAddressNameContaining(location)
} else {
feedRepository.findAllByTitleContainingAndAddressNameContaining(request.keyword, location)
}
Expand Down

0 comments on commit 72c8058

Please sign in to comment.