Skip to content

Commit 9f73958

Browse files
giacomoaccursiandrea-acampora
authored andcommitted
chore: use SurgeryReport instead SurgeryReportInfo in getSurgeryReportInfo method
1 parent f7c3d35 commit 9f73958

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/infrastructure/webclient/WebClient.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ class WebClient(vertx: Vertx) :
8686
}
8787
}
8888

89-
override fun getSurgeryReportInfo(processId: String): Future<SurgeryReportInfo> =
90-
client.getAbs("$SR_URI/reports/$processId").send().map { res ->
91-
Json.decodeFromString<SurgeryReportInfoDto>(res.bodyAsString()).toSurgeryNameInfo()
89+
override fun getSurgeryReportInfo(processId: String): Future<SurgeryReport> =
90+
client.getAbs("$SR_URI/reports/$processId").send().map {
91+
Json.decodeFromString<SurgeryReportApiDto>(it.bodyAsString()).toSurgeryReport()
9292
}
9393

9494
override fun integrateReport(surgeryReportIntegration: SurgeryReportIntegration): Future<Boolean> =

0 commit comments

Comments
 (0)