diff --git a/FreeAPS/Sources/APS/CGM/DexcomSourceG5.swift b/FreeAPS/Sources/APS/CGM/DexcomSourceG5.swift index 847e462da7..831dfd2a5a 100644 --- a/FreeAPS/Sources/APS/CGM/DexcomSourceG5.swift +++ b/FreeAPS/Sources/APS/CGM/DexcomSourceG5.swift @@ -148,7 +148,7 @@ extension DexcomSourceG5: CGMManagerDelegate { let quantity = newGlucoseSample.quantity let value = Int(quantity.doubleValue(for: .milligramsPerDeciliter)) return BloodGlucose( - _id: newGlucoseSample.syncIdentifier, + _id: UUID().uuidString, sgv: value, direction: .init(trendType: newGlucoseSample.trend), date: Decimal(Int(newGlucoseSample.date.timeIntervalSince1970 * 1000)), diff --git a/FreeAPS/Sources/APS/CGM/DexcomSourceG6.swift b/FreeAPS/Sources/APS/CGM/DexcomSourceG6.swift index b5f00d381e..ad5a3afeec 100644 --- a/FreeAPS/Sources/APS/CGM/DexcomSourceG6.swift +++ b/FreeAPS/Sources/APS/CGM/DexcomSourceG6.swift @@ -153,7 +153,7 @@ extension DexcomSourceG6: CGMManagerDelegate { let quantity = newGlucoseSample.quantity let value = Int(quantity.doubleValue(for: .milligramsPerDeciliter)) return BloodGlucose( - _id: newGlucoseSample.syncIdentifier, + _id: UUID().uuidString, sgv: value, direction: .init(trendType: newGlucoseSample.trend), date: Decimal(Int(newGlucoseSample.date.timeIntervalSince1970 * 1000)),