Selaa lähdekoodia

fix for bolus recommendation not updating

polscm32 2 vuotta sitten
vanhempi
commit
2190f1a2da
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      FreeAPS/Sources/Modules/Bolus/BolusStateModel.swift

+ 1 - 1
FreeAPS/Sources/Modules/Bolus/BolusStateModel.swift

@@ -97,7 +97,7 @@ extension Bolus {
 
 
         let now = Date.now
         let now = Date.now
 
 
-        let context = CoreDataStack.shared.backgroundContext
+        let context = CoreDataStack.shared.viewContext
 
 
         override func subscribe() {
         override func subscribe() {
             fetchGlucose()
             fetchGlucose()