Skip to content

Commit

Permalink
[FO-976] '전체'를 시군구 목록 상단에 놓도록 변경 (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
DoodlesOnMyFood authored Mar 17, 2024
1 parent f4fa5f4 commit 2d51335
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class LocationService(

@Transactional(readOnly = true)
suspend fun retrieveDistricts(region: String): RetrieveDistrictsResponse {
val result = locationRepository.getDistricts(region)
val result = locationRepository.getDistricts(region).filter { it != "전체" }
return RetrieveDistrictsResponse(
districts = result
districts = listOf("전체") + result
)
}
}

0 comments on commit 2d51335

Please sign in to comment.