diff --git a/src/app/api/nutrients/batch/route.ts b/src/app/api/nutrients/batch/route.ts index 45823fe65..ddde79c86 100644 --- a/src/app/api/nutrients/batch/route.ts +++ b/src/app/api/nutrients/batch/route.ts @@ -346,13 +346,12 @@ async function postBatch(request: NextRequest): Promise { }); if (inserted + updated > 0) { - // v1.30.3 — a landed row changes the dashboard's water/nutrient - // tile and the correlation scan (water, caffeine and nutrient channels) - // behind the metric pages and the Coach read; without this they kept - // serving the pre-sync figure until the analytics fresh TTL lapsed. - // Mirrors the manual water POST's own hard-evict - // (`nutrients/water/route.ts`) so an Apple-Health-synced total - // reflects on the very next read, same as a manually logged one. + // v1.30.3 — a landed row changes the dashboard's water/nutrient tile + // and the correlation scan behind the metric pages and the Coach read; + // without this they kept the pre-sync figure until the analytics TTL + // lapsed. Mirrors the manual water POST's own hard-evict + // (`nutrients/water/route.ts`) so a synced total reflects on the very + // next read, same as a manually logged one. invalidateUserHealthContext(user.id); }