mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 04:32:42 +00:00
The ingest route required integers for the average heart rate and the sampling frequency. HealthKit reports both as doubles and a watch's average heart rate is often fractional, so most new recordings were refused with 422 while older ones, whose value happened to be whole, went through. Both are now accepted as numbers and rounded once before they are stored; the columns stay integers. A refused body now logs which fields were refused and why, never their values. Refs #1060