Explorar el Código

fix for bolus recommendation not updating

polscm32 hace 2 años
padre
commit
2190f1a2da
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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()