mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
fix(nutrients): refresh the correlation scan after a water or nutrient write
Water, caffeine and the nutrient channels feed the correlation scan behind /api/insights/correlations and the Coach read line on the metric pages, but the water and nutrient batch writes evicted only the dashboard snapshot. After logging water both could serve the read taken before it until the cell went stale. Both writes now sweep the record's analytics cells, as measurement and mood writes do.
This commit is contained in:
1 parent
d430981caa
commit
442d97cc66
6 files changed
+33
-29
No files matched your search
@@ -100,8 +100,9 @@ function latestDay(
|
||||
* channel over 180 days and does not depend on the metric, so without the cell
|
||||
* each metric page paid the whole scan again for the one line it picks. Same
|
||||
* cell contract as `/api/insights/correlations`: measurement, mood, medication,
|
||||
* illness, custom-metric and pattern writes sweep the `${userId}|` prefix, and
|
||||
* the switched-off modules are part of the key. A failed read is not cached.
|
||||
* illness, nutrient, custom-metric and pattern writes sweep the `${userId}|`
|
||||
* prefix, and the switched-off modules are part of the key. A failed read is
|
||||
* not cached.
|
||||
*/
|
||||
async function readDrivers(
|
||||
userId: string,
|
||||
|
||||
Reference in new issue
Block a user