jolet
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-08-19 04:22:06 +02:00
parent ce1aa81dbd
commit bb69905ede

View File

@ -38,7 +38,7 @@ class DatabaseConsumer (channel: Channel) : Consumer, KoinComponent {
) { ) {
try { try {
val rawJson = body!!.toString(Charsets.UTF_8) val rawJson = body!!.toString(Charsets.UTF_8)
val apiObject = Json.decodeFromString<ApiObject>(rawJson) val apiObject = Json{ ignoreUnknownKeys = true }.decodeFromString<ApiObject>(rawJson)
resultObjectService.addOne(apiObject) resultObjectService.addOne(apiObject)
basicChannel.basicAck(envelope!!.deliveryTag,false) basicChannel.basicAck(envelope!!.deliveryTag,false)
} catch (e: Exception) { } catch (e: Exception) {