Skip to content

Commit

Permalink
Fix apple health crash (nightscout#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasStokholm authored Feb 26, 2024
1 parent d7aad9f commit 5a45a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Services/HealthKit/HealthKitManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ final class BaseHealthKitManager: HealthKitManager, Injectable, CarbsObserver, P
let predicate = HKQuery.predicateForObjects(
withMetadataKey: HKMetadataKeySyncIdentifier,
operatorType: .equalTo,
value: syncID
value: syncID.id
)
self.healthKitStore.deleteObjects(of: sampleType, predicate: predicate) { _, _, error in
guard let error = error else { return }
Expand Down

0 comments on commit 5a45a5b

Please sign in to comment.