Eros: insert fix
This commit is contained in:
parent
30af551cbd
commit
7ed9616df3
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class ErosHistory(private val dao: ErosHistoryRecordDao) {
|
|||
}
|
||||
|
||||
fun create(historyRecord: ErosHistoryRecordEntity?): Long =
|
||||
Single.just(dao.insert(historyRecord!!))
|
||||
Single.fromCallable { dao.insert(historyRecord!!) }
|
||||
.subscribeOn(Schedulers.io())
|
||||
.blockingGet()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue