From 7ed9616df3591cc29a97cf394f7bbff9aeb2b62c Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 21 Oct 2021 11:01:27 +0200 Subject: [PATCH] Eros: insert fix --- .../androidaps/plugins/pump/omnipod/eros/history/ErosHistory.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omnipod-eros/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/eros/history/ErosHistory.kt b/omnipod-eros/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/eros/history/ErosHistory.kt index e95f9d6357..6d331b1e4d 100644 --- a/omnipod-eros/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/eros/history/ErosHistory.kt +++ b/omnipod-eros/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/eros/history/ErosHistory.kt @@ -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() }