From 31ccb9a7d40cf5b9de248374302e8274e5005c0d Mon Sep 17 00:00:00 2001 From: Andrei Vereha Date: Tue, 10 May 2022 18:48:12 +0200 Subject: [PATCH] fix --- .../androidaps/plugins/pump/omnipod/dash/history/DashHistory.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/history/DashHistory.kt b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/history/DashHistory.kt index d8a42eff34..2a69c98501 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/history/DashHistory.kt +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/history/DashHistory.kt @@ -51,7 +51,7 @@ class DashHistory @Inject constructor( resolvedAt: Long? = null ): Single = Single.defer { var id: Long = 0 - if (dao.first() != null) { + if (dao.first() == null) { id = currentTimeMillis() } when {