Skip to content

Commit f81bf25

Browse files
committed
fix: Update findGuidesByRegion to support both Korean and English region names
1 parent 06cf88f commit f81bf25

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/com/back/koreaTravelGuide/domain/user/service

1 file changed

+1
-1
lines changed

src/main/kotlin/com/back/koreaTravelGuide/domain/user/service/GuideService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class GuideService(
5757
fun findGuidesByRegion(region: String): List<GuideResponse> {
5858
// String을 Region enum으로 변환 (한글 displayName 또는 영문 enum name 둘 다 지원)
5959
val regionEnum =
60-
Region.entries.find {
60+
Region.values().find {
6161
it.displayName.equals(region, ignoreCase = true) ||
6262
it.name.equals(region, ignoreCase = true)
6363
} ?: return emptyList()

0 commit comments

Comments
 (0)