charset utf8
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/pr Build is passing

This commit is contained in:
Torma Kristóf 2020-05-22 04:45:32 +02:00
parent 9074619914
commit 597c0a24db
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -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)