Files
cgm-remote-monitor/tests
Ben WestandCopilot cbb6d06107 fix(profile): restore array handling for profile POST API
NightscoutKit (Loop) sends profiles wrapped in arrays: [profile].
The MongoDB driver migration changed insert() to insertOne(), breaking
array support.

Changes:
- API layer: normalize input to array, purify each item
- Storage layer: use insertMany() instead of insertOne()
- Tests: verify single, array, and empty array handling

This matches the proven pattern from treatments API.

Fixes array handling regression introduced in d46c5b41.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-18 10:24:48 -07:00
..
2021-02-18 18:23:40 +02:00
2022-08-30 12:49:01 +03:00
2021-02-08 19:28:49 +02:00
2019-11-10 21:57:49 +00:00
2020-12-14 22:30:21 +02:00
2020-02-22 17:07:21 +02:00