mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 22:26:13 +00:00
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:
1 parent
a6c3916910
commit
c9264c047e
1 file changed
+6
-7
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user