mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 07:57:55 +02:00
fix: Don't use implicit toString value of Eva
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ class BahnApiService(
|
||||
val time = LocalTime.of(hourAtDay.hour.value, 0)
|
||||
val body = restClient.get()
|
||||
.uri("https://apis.deutschebahn.com/db-api-marketplace/apis/timetables/v1/plan/" +
|
||||
"${eva}/${hourAtDay.date.format(dateFormatter)}/${time.format(timeFormatter)}")
|
||||
"${eva.value}/${hourAtDay.date.format(dateFormatter)}/${time.format(timeFormatter)}")
|
||||
.headers {
|
||||
it.accept = mutableListOf(MediaType.APPLICATION_XML)
|
||||
it.contentType = MediaType.APPLICATION_XML
|
||||
|
||||
Reference in New Issue
Block a user