mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 23:33:29 +00:00
postBatch was a 700-line function. The route keeps authentication, the per-account preference read, the body caps, the rate limit, the parse and the bridge-source refusal; the ingest moves verbatim into lib/workouts/batch-ingest/: the first pass (entries), the duplicate probe and write plan with the manual-correction rules (plan), the transaction that writes corrections, workouts, tracks and series (write), and the orchestrator with the audit, record detection, wide event, cache and arrivals (ingest). The route is 275 lines. The parity walk recorded before the move is unchanged; the guards that name the track writer, the Workout writer set and the per-entry external-id check point at the service files.