Eros: insert fix

This commit is contained in:
Milos Kozak 2021-10-21 11:01:27 +02:00
parent 30af551cbd
commit 7ed9616df3

View file

@ -23,7 +23,7 @@ class ErosHistory(private val dao: ErosHistoryRecordDao) {
} }
fun create(historyRecord: ErosHistoryRecordEntity?): Long = fun create(historyRecord: ErosHistoryRecordEntity?): Long =
Single.just(dao.insert(historyRecord!!)) Single.fromCallable { dao.insert(historyRecord!!) }
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.blockingGet() .blockingGet()
} }