<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coinos-server.git/scripts/dedup-invoices.ts, branch master</title>
<subtitle>coinos server — legacy coinos.io backend (Lightning, on-chain, Liquid)</subtitle>
<id>https://git.coinos.io/coinos-server.git/atom?h=master</id>
<link rel='self' href='https://git.coinos.io/coinos-server.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/'/>
<updated>2026-06-18T15:27:11Z</updated>
<entry>
<title>scripts: add dedup-invoices cleanup for already-duplicated :invoices</title>
<updated>2026-06-18T15:27:11Z</updated>
<author>
<name>Adam Soltys</name>
<email>adam@coinos.io</email>
</author>
<published>2026-06-18T14:41:21Z</published>
<link rel='alternate' type='text/html' href='https://git.coinos.io/coinos-server.git/commit/?id=fbf0c4f45249875b0b95eeb1beedd811b176a245'/>
<id>urn:sha1:fbf0c4f45249875b0b95eeb1beedd811b176a245</id>
<content type='text'>
The source fix (LPOS guard in generate()) stops NEW duplicate entries but
doesn't remove the ones already accumulated. This one-time script scrubs
them: scans every &lt;id&gt;:invoices list and removes duplicate ids, keeping
each id's original creation-order position. Dry-run by default; pass
--apply to write. Idempotent.

Co-Authored-By: Claude Opus 4.8 (1M context) &lt;noreply@anthropic.com&gt;
</content>
</entry>
</feed>
