Compare commits

...

2 Commits

Author SHA1 Message Date
874480aadb
Merge branch 'master' of ssh://git.kmlabz.com:2222/birbnetes/sample-service-consumer
All checks were successful
continuous-integration/drone/push Build is passing
2021-08-17 18:14:12 +02:00
1529649389
use iso format 2021-08-17 18:14:02 +02:00

View File

@ -1,7 +1,7 @@
package mq
import api.ApiObject
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.rabbitmq.client.*
import database.service.ISampleObjectService
import org.koin.core.component.KoinComponent
@ -9,7 +9,7 @@ import org.koin.core.component.inject
class DatabaseConsumer (channel: Channel) : Consumer, KoinComponent {
private val resultObjectService: ISampleObjectService by inject()
private val gson = Gson()
private val gson = GsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ssz").create()
private val basicChannel = channel
override fun handleConsumeOk(consumerTag: String?) {
}