mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
fix(01-19): avoid phantom ECG failure counts
- increment archive-level failures only for discovered ECG artifacts
This commit is contained in:
1 parent
4b64556b38
commit
addd6b7000
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user