From 22d015128e147b1ff3222cb59a306a96119d975c Mon Sep 17 00:00:00 2001 From: Anders Ha Date: Fri, 16 Aug 2024 17:21:04 +0100 Subject: [PATCH] VIT-7206: Fix respiratory rate data being mis-tagged as temperature data (#235) --- Sources/VitalHealthKit/HealthKit/HealthKitReads.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/VitalHealthKit/HealthKit/HealthKitReads.swift b/Sources/VitalHealthKit/HealthKit/HealthKitReads.swift index cc94a91..c45826b 100644 --- a/Sources/VitalHealthKit/HealthKit/HealthKitReads.swift +++ b/Sources/VitalHealthKit/HealthKit/HealthKitReads.swift @@ -276,7 +276,7 @@ func read( endDate: instruction.query.upperBound ) - return (.timeSeries(.temperature(payload.samples)), payload.anchors) + return (.timeSeries(.respiratoryRate(payload.samples)), payload.anchors) case .individual(.exerciseTime), .individual(.bodyFat), .individual(.weight): throw VitalHealthKitClientError.invalidRemappedResource