aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dedup-invoices.ts
Commit message (Collapse)AuthorAgeFilesLines
* scripts: add dedup-invoices cleanup for already-duplicated :invoicesAdam Soltys2026-06-181-0/+86
The source fix (LPOS guard in generate, 2d2f9856) stops NEW duplicate entries but doesn't remove the ones already accumulated. This one-time script scrubs them: scans every <id>:invoices list and removes duplicate ids, keeping each id's original creation-order position. Dry-run by default; pass --apply to write. Idempotent. Scope on a recent prod snapshot: 2,785 of 8,735 lists had dupes (16,363 duplicate entries). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>