Skip to content

Commit 7265c7e

Browse files
committed
fix: 버스 이름이 일치하는 경우에서 포함하는 경우로 로직 변경
1 parent 130c628 commit 7265c7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

domain/src/main/java/com/stop/domain/usecase/route/GetLastTransportTimeUseCaseImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ internal class GetLastTransportTimeUseCaseImpl @Inject constructor(
121121
val busName = transportIdRequest.lineName.split(":")[1]
122122
val line =
123123
routeRepository.getSeoulBusLine(transportIdRequest.stationId).lineIdMsgBody.busLines.firstOrNull {
124-
it.busLineName == busName
124+
it.busLineName.contains(busName)
125125
} ?: throw NoAppropriateDataException(NO_BUS_LINE_ID)
126126

127127
return transportIdRequest.changeLineId(line.lineId, line.term)

0 commit comments

Comments
 (0)