Skip to content

Commit

Permalink
Bug fix: Revoke limit on HealthKit Query (#61)
Browse files Browse the repository at this point in the history
# Bug fix: Revoke limit on HealthKit Query

## ♻️ Current situation & Problem
Previously, we set a limit on how many data samples to query for
debugging. This causes that insufficient data to display and we want to
revoke it.


## ⚙️ Release Notes 
- remove the limit in the HKSampleQuery


## 📚 Documentation
Not related.


## ✅ Testing
Tested on simulator

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
  • Loading branch information
YurenSUN authored Mar 14, 2024
1 parent d8a2dca commit 35e98bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PICS/HealthVisulization/HKVisualization.swift
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ struct HKVisualization: View {
let query = HKSampleQuery(
sampleType: quantityType,
predicate: predicate,
limit: 2000,
limit: Int(HKObjectQueryNoLimit),
sortDescriptors: sortDescriptors
) { _, results, error in
guard error == nil else {
Expand Down

0 comments on commit 35e98bf

Please sign in to comment.