Ivan Valkou 4 лет назад
Родитель
Сommit
c4ae716510
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      FreeAPS/Sources/APS/Storage/PumpHistoryStorage.swift

+ 2 - 4
FreeAPS/Sources/APS/Storage/PumpHistoryStorage.swift

@@ -56,11 +56,9 @@ final class BasePumpHistoryStorage: PumpHistoryStorage, Injectable {
                     let isCancel = !event.isMutable && delivered != nil
                     guard !isCancel else { return [] }
 
-                    let basalID = UUID().uuidString
-
                     return [
                         PumpHistoryEvent(
-                            id: basalID,
+                            id: id,
                             type: .tempBasalDuration,
                             timestamp: date,
                             amount: nil,
@@ -71,7 +69,7 @@ final class BasePumpHistoryStorage: PumpHistoryStorage, Injectable {
                             carbInput: nil
                         ),
                         PumpHistoryEvent(
-                            id: "_" + basalID,
+                            id: "_" + id,
                             type: .tempBasal,
                             timestamp: date,
                             amount: nil,