Jon B Mårtensson il y a 3 ans
Parent
commit
25877886e6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      FreeAPS/Sources/APS/APSManager.swift

+ 1 - 1
FreeAPS/Sources/APS/APSManager.swift

@@ -1192,7 +1192,7 @@ final class BaseAPSManager: APSManager, Injectable {
 
 
         storage.transaction { storage in
         storage.transaction { storage in
             storage.append(dailystat, to: file, uniqBy: \.createdAt)
             storage.append(dailystat, to: file, uniqBy: \.createdAt)
-            var xduniqeEvents: [Statistics] = storage.retrieve(file, as: [Statistics].self)?
+            var uniqeEvents: [Statistics] = storage.retrieve(file, as: [Statistics].self)?
                 .filter { $0.createdAt.addingTimeInterval(24.hours.timeInterval) > Date() }
                 .filter { $0.createdAt.addingTimeInterval(24.hours.timeInterval) > Date() }
                 .sorted { $0.createdAt > $1.createdAt } ?? []
                 .sorted { $0.createdAt > $1.createdAt } ?? []