mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
/api/dashboard/summary sent the glucose card's value in mg/dL with unit null and a unitKey that reads mg/dL, so a reader on mmol/L saw the mg/dL number. The card now carries latestValue, secondaryValue and sparkline in the record owner's glucose unit and names it in unit, the field that wins over unitKey, as the sleep card already does. Applied after the summary cache read, so a unit change shows on the next request.
2.7 MiB
2.7 MiB