From f7484e08688f52314faa38884d22eeb401a1fdb1 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Mon, 8 Jan 2024 19:00:20 +0100 Subject: [PATCH] fix: Don't use implicit toString value of Eva --- .../de/twomartens/timetable/bahnApi/service/BahnApiService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/service/BahnApiService.kt b/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/service/BahnApiService.kt index fa3489d..52e5590 100644 --- a/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/service/BahnApiService.kt +++ b/module-bahnApi/src/main/kotlin/de/twomartens/timetable/bahnApi/service/BahnApiService.kt @@ -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