fix: Don't use implicit toString value of Eva

This commit is contained in:
2024-01-08 19:00:20 +01:00
parent 864144b37a
commit f7484e0868
@@ -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