From 4b578506357db5ecefefc2620161c0dfecc2e9c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=BCnk=C3=B6sd=20Marcell?= Date: Tue, 28 Sep 2021 20:10:31 +0200 Subject: [PATCH] ez is jolet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pünkösd Marcell --- src/main/kotlin/mq/DatabaseConsumer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/mq/DatabaseConsumer.kt b/src/main/kotlin/mq/DatabaseConsumer.kt index fe4a1db..1c8c8fd 100644 --- a/src/main/kotlin/mq/DatabaseConsumer.kt +++ b/src/main/kotlin/mq/DatabaseConsumer.kt @@ -30,7 +30,7 @@ class DatabaseConsumer(channel: Channel): Consumer, KoinComponent { override fun handleDelivery(consumerTag : String?, envelope : Envelope?, basicProperties : AMQP.BasicProperties?, body : ByteArray?) { try { val rawJson = body!!.toString(Charsets.UTF_8) - val apiObject = Json.decodeFromString(rawJson) + val apiObject = Json{ ignoreUnknownKeys = true }.decodeFromString(rawJson) resultObjectService.addOne(apiObject) basicChannel.basicAck(envelope!!.deliveryTag, false) } catch (e: Exception) {