mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
The API layer was calling purifyObject() on the raw req.body without handling arrays. When NightscoutKit sends [status], only the outer array would be purified (no-op), not the individual status objects. Now normalizes to array and purifies each devicestatus object, matching the treatments pattern. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>