mirror of
https://github.com/pcvolkmer/etl-processor.git
synced 2025-04-19 17:26:51 +00:00
Use Map as status body since it contains JSON
This commit is contained in:
parent
577509e6f2
commit
ac91620651
@ -54,7 +54,7 @@ class KafkaResponseProcessor(
|
||||
it.processedAt = Instant.ofEpochMilli(data.timestamp())
|
||||
it.report = Report(
|
||||
"Warnungen über mangelhafte Daten",
|
||||
responseBody.statusBody
|
||||
objectMapper.writeValueAsString(responseBody.statusBody)
|
||||
)
|
||||
requestRepository.save(it)
|
||||
}
|
||||
@ -64,7 +64,7 @@ class KafkaResponseProcessor(
|
||||
it.processedAt = Instant.ofEpochMilli(data.timestamp())
|
||||
it.report = Report(
|
||||
"Fehler bei der Datenübertragung oder Inhalt nicht verarbeitbar",
|
||||
responseBody.statusBody
|
||||
objectMapper.writeValueAsString(responseBody.statusBody)
|
||||
)
|
||||
requestRepository.save(it)
|
||||
}
|
||||
@ -83,6 +83,6 @@ class KafkaResponseProcessor(
|
||||
|
||||
data class ResponseBody(
|
||||
@JsonProperty("status_code") @JsonAlias("status code") val statusCode: Int,
|
||||
@JsonProperty("status_body") val statusBody: String
|
||||
@JsonProperty("status_body") val statusBody: Map<String, Any>
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user