mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 05:42:19 +00:00
Mirrors the intake-route call site (v1.4.40 close of v1.4.39.4 hook gap). `projectAndReadTodaysIntakes` runs the same idempotent projection helper the intake route uses; without this hook the compliance rollup stayed pre-projection on the second call site too. Fires `recomputeMedicationComplianceForEvent` once per distinct `(medication_id, dayKey)` after the bulk `createMany`, best-effort inside the helper's try/catch so a populator hiccup doesn't surface as a 5xx on the dashboard summary.