Skip to content

Commit

Permalink
Limit Query to Health Store to 100 entries.
Browse files Browse the repository at this point in the history
Part of a previous commit which needed to reverted, due to a fatal error.
  • Loading branch information
Jon-b-m committed Feb 16, 2024
1 parent d5566a6 commit 4e800c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FreeAPS/Sources/Services/HealthKit/HealthKitManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ final class BaseHealthKitManager: HealthKitManager, Injectable, CarbsObserver, P
let query = HKSampleQuery(
sampleType: sampleType,
predicate: nil,
limit: 1000,
limit: 100,
sortDescriptors: nil
) { _, results, _ in
promise(.success((results as? [HKQuantitySample]) ?? []))
Expand All @@ -447,7 +447,7 @@ final class BaseHealthKitManager: HealthKitManager, Injectable, CarbsObserver, P
let query = HKSampleQuery(
sampleType: sampleType,
predicate: predicate,
limit: 1000,
limit: 100,
sortDescriptors: nil
) { _, results, _ in
promise(.success((results as? [HKQuantitySample]) ?? []))
Expand Down

0 comments on commit 4e800c3

Please sign in to comment.