mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
`Measurement.deviceType` exists on the row, was added by the W8c batch ingest path, but the single-entry `createMeasurementSchema` omitted it — every single-row POST silently dropped the device tag even when the client supplied one. Manual rows tagged with watch / scale / ring metadata lost their attribution at the schema boundary and showed up as unsourced. Declare `deviceType` on the schema (optional, nullable, 1–32 chars), thread it through both single-entry and array-body POST handlers, and add three RTL cases (present, null, omitted) so the parsed shape stays observable.