ez is jolet

Signed-off-by: Pünkösd Marcell <marcsello@sch.bme.hu>
This commit is contained in:
Pünkösd Marcell 2021-09-28 20:10:31 +02:00
parent 7b0281af10
commit 4b57850635
1 changed files with 1 additions and 1 deletions

View File

@ -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<ApiObject>(rawJson)
val apiObject = Json{ ignoreUnknownKeys = true }.decodeFromString<ApiObject>(rawJson)
resultObjectService.addOne(apiObject)
basicChannel.basicAck(envelope!!.deliveryTag, false)
} catch (e: Exception) {