use kotlinx serialization
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -2,6 +2,7 @@ package database.service
|
||||
|
||||
import database.model.SampleObject
|
||||
import api.ApiObject
|
||||
import kotlinx.datetime.toJavaLocalDate
|
||||
import org.jetbrains.exposed.sql.transactions.transaction
|
||||
|
||||
class SampleObjectService : ISampleObjectService {
|
||||
@@ -10,7 +11,7 @@ class SampleObjectService : ISampleObjectService {
|
||||
transaction {
|
||||
SampleObject.new {
|
||||
tag = apiObject.tag
|
||||
device_date = apiObject.device_date
|
||||
device_date = apiObject.device_date.toJavaLocalDate()
|
||||
device_id = apiObject.device_id
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user