diff options
| author | Adam Soltys <[email protected]> | 2025-09-18 14:42:13 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-09-18 14:42:13 -0700 |
| commit | 8c7fa95d44aabd38fadc3ef955d835ad3379ec6c (patch) | |
| tree | c5c3b9f5490acd944656438d31355081835098d3 /lib/payments.ts | |
| parent | d2db386e53296babe4e4068ca8d68b3c052e0efb (diff) | |
| download | coinos-server-8c7fa95d44aabd38fadc3ef955d835ad3379ec6c.tar.gz coinos-server-8c7fa95d44aabd38fadc3ef955d835ad3379ec6c.zip | |
sendinvoice support
Diffstat (limited to 'lib/payments.ts')
| -rw-r--r-- | lib/payments.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/payments.ts b/lib/payments.ts index 807c87fa..9b7c807b 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -185,7 +185,7 @@ export const credit = async ({ amount = parseInt(amount) || 0; let inv; - if (type === PaymentType.bolt12) { + if (type === PaymentType.bolt12 && !hash.startsWith("lni")) { const { invoices } = await ln.listinvoices({ invstring: hash }); const { local_offer_id } = invoices[0]; inv = await getInvoice(local_offer_id); |
