Merge improvements #1
@ -24,7 +24,7 @@ class DatabaseConsumer : Consumer {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
override fun handleDelivery(consumerTag : String?, envelope : Envelope?, basicProperties : BasicProperties?, body : ByteArray?) {
|
||||
val rawJson = body.toString()
|
||||
val rawJson = body!!.toString(Charsets.UTF_8)
|
||||
val apiObject = gson.fromJson(rawJson, ApiObject::class.java)
|
||||
|
||||
resultObjectService.addOne(apiObject)
|
||||
|
Loading…
Reference in New Issue
Block a user