From c9264c047ef71de5dcc2cf1fc4711585301fa265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 12 Nov 2026 15:14:45 +0100 Subject: [PATCH] docs(nutrients): keep the batch eviction note to its old length The longer note pushed the batch handler one line past its size baseline. --- src/app/api/nutrients/batch/route.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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); }