fix(01-19): avoid phantom ECG failure counts

- increment archive-level failures only for discovered ECG artifacts
This commit is contained in:
Marc-André Bombeck committed 2026-07-29 14:47:47 +02:00
1 parent 4b64556b38
commit addd6b7000
1 file changed
+1 -1
+1 -1
View File
@@ -396,7 +396,7 @@ export async function handleAppleHealthImport(
}
} catch {
const completed = ecg.imported + ecg.updated + ecg.skipped + ecg.failed;
ecg.failed += Math.max(1, ecg.discovered - completed);
ecg.failed += Math.max(0, ecg.discovered - completed);
}
// Done. Persist the terminal envelope.