mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
POST /api/nutrients/batch performed zero cache invalidation, so an Apple-Health-synced water/nutrient total kept the dashboard's tile serving the pre-sync figure until the analytics fresh TTL lapsed (~3 min) — the manual water POST already hard-evicts on its own write. Calls invalidateUserDashboardSnapshot(user.id) once at least one row inserted or updated, mirroring the manual route's own posture so a synced total reflects on the very next dashboard read.