diff --git a/database/impl/src/main/java/info/nightscout/database/impl/transactions/InsertBolusWithTempIdTransaction.kt b/database/impl/src/main/java/info/nightscout/database/impl/transactions/InsertBolusWithTempIdTransaction.kt index 3096e8c943..2d5f572dc1 100644 --- a/database/impl/src/main/java/info/nightscout/database/impl/transactions/InsertBolusWithTempIdTransaction.kt +++ b/database/impl/src/main/java/info/nightscout/database/impl/transactions/InsertBolusWithTempIdTransaction.kt @@ -15,7 +15,7 @@ class InsertBolusWithTempIdTransaction( val result = TransactionResult() val current = database.bolusDao.findByPumpTempIds(bolus.interfaceIDs.temporaryId!!, bolus.interfaceIDs.pumpType!!, bolus.interfaceIDs.pumpSerial!!) if (current == null) { - database.bolusDao.insert(bolus) + bolus.id = database.bolusDao.insert(bolus) result.inserted.add(bolus) } return result diff --git a/database/impl/src/main/java/info/nightscout/database/impl/transactions/InsertGlucoseValueTransaction.kt b/database/impl/src/main/java/info/nightscout/database/impl/transactions/InsertGlucoseValueTransaction.kt deleted file mode 100644 index 3c0c8215c2..0000000000 --- a/database/impl/src/main/java/info/nightscout/database/impl/transactions/InsertGlucoseValueTransaction.kt +++ /dev/null @@ -1,13 +0,0 @@ -package info.nightscout.database.impl.transactions - -import info.nightscout.database.entities.GlucoseValue - -/** - * Creates the GlucoseValue - */ -class InsertGlucoseValueTransaction(val glucoseValue: GlucoseValue) : Transaction() { - - override fun run() { - database.glucoseValueDao.insert(glucoseValue) - } -} \ No newline at end of file diff --git a/database/impl/src/main/java/info/nightscout/database/impl/transactions/InsertTemporaryBasalWithTempIdTransaction.kt b/database/impl/src/main/java/info/nightscout/database/impl/transactions/InsertTemporaryBasalWithTempIdTransaction.kt index 9c94e62042..2e44a4984c 100644 --- a/database/impl/src/main/java/info/nightscout/database/impl/transactions/InsertTemporaryBasalWithTempIdTransaction.kt +++ b/database/impl/src/main/java/info/nightscout/database/impl/transactions/InsertTemporaryBasalWithTempIdTransaction.kt @@ -15,7 +15,7 @@ class InsertTemporaryBasalWithTempIdTransaction(private val temporaryBasal: Temp val result = TransactionResult() val current = database.temporaryBasalDao.findByPumpTempIds(temporaryBasal.interfaceIDs.temporaryId!!, temporaryBasal.interfaceIDs.pumpType!!, temporaryBasal.interfaceIDs.pumpSerial!!) if (current == null) { - database.temporaryBasalDao.insert(temporaryBasal) + temporaryBasal.id = database.temporaryBasalDao.insert(temporaryBasal) result.inserted.add(temporaryBasal) } return result