Skip to content

Commit

Permalink
전체를 목록 상단에 놓도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
DoodlesOnMyFood committed Mar 15, 2024
1 parent cdc9585 commit e8f9a30
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 e8f9a30

Please sign in to comment.