docs(nutrients): keep the batch eviction note to its old length

The longer note pushed the batch handler one line past its size baseline.
This commit is contained in:
Marc-André Bombeck committed 2026-11-12 15:14:45 +01:00
1 parent a6c3916910
commit c9264c047e
1 file changed
+6 -7
+6 -7
View File
@@ -346,13 +346,12 @@ async function postBatch(request: NextRequest): Promise<Response> {
});
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);
}