summaryrefslogtreecommitdiff
path: root/src/main/kotlin/dev/dnpm/etl/processor
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/dev/dnpm/etl/processor')
-rw-r--r--src/main/kotlin/dev/dnpm/etl/processor/services/kafka/KafkaResponseProcessor.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/dev/dnpm/etl/processor/services/kafka/KafkaResponseProcessor.kt b/src/main/kotlin/dev/dnpm/etl/processor/services/kafka/KafkaResponseProcessor.kt
index d6c4da6..547833c 100644
--- a/src/main/kotlin/dev/dnpm/etl/processor/services/kafka/KafkaResponseProcessor.kt
+++ b/src/main/kotlin/dev/dnpm/etl/processor/services/kafka/KafkaResponseProcessor.kt
@@ -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>
)
} \ No newline at end of file