Files
HealthLog/src/app/api/import
Marc-André Bombeck 19edda66c0 fix(import): re-fold every day a CSV import touched, even when it fails
A re-import that moved a reading to another instant re-folded only the day
it moved to, so the day it left kept the reading in its rollups. And a
write chunk that failed part-way ended the request before the re-fold ran;
a retry then read the landed rows as duplicates and touched nothing, so
those days kept their pre-import rollups for good. The re-fold now covers
the old instant of a moved row and runs whether or not the writes finish.
2026-09-26 22:06:39 +02:00
..