diff options
| author | Adam Soltys <[email protected]> | 2026-02-28 22:06:55 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-28 22:06:55 -0800 |
| commit | 51e01eb2dc6e7976963c31b9349c4e621c535874 (patch) | |
| tree | 6987a086e1dfe156d3addd3f88254e5ebd53bebd /lib/payments.ts | |
| parent | 205ffb7684f18256690f374ab78745ccfe5d850d (diff) | |
| download | coinos-server-51e01eb2dc6e7976963c31b9349c4e621c535874.tar.gz coinos-server-51e01eb2dc6e7976963c31b9349c4e621c535874.zip | |
disable rate limiting in dev
Diffstat (limited to 'lib/payments.ts')
| -rw-r--r-- | lib/payments.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/payments.ts b/lib/payments.ts index 52319c8d..66f536bc 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -371,11 +371,9 @@ export const completePayment = async (inv, p, user) => { inv.forwarded = true; await s(`invoice:${inv.id}`, inv); - // Skip forward if destination is the same user's own Lightning invoice - if (inv.forward.startsWith("ln")) { - const destInv = await getInvoice(inv.forward).catch(() => null); - if (destInv?.uid === id) return; - } + // Skip forward if destination belongs to the same user + const destInv = await getInvoice(inv.forward).catch(() => null); + if (destInv?.uid === id) return; await pay({ amount: p.amount, to: inv.forward, user }); } catch (e) { |
