diff options
| author | Adam Soltys <[email protected]> | 2025-07-08 02:52:12 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-07-08 02:52:12 -0700 |
| commit | eae157170b2c678394c7b687aa54329e98f2807b (patch) | |
| tree | 87ae8c93bc15688193fda5e09b58fb1d8279c375 | |
| parent | 832dd3e40f9bcb9cf7656e04cdb02df103bebf3b (diff) | |
| download | coinos-server-eae157170b2c678394c7b687aa54329e98f2807b.tar.gz coinos-server-eae157170b2c678394c7b687aa54329e98f2807b.zip | |
fix variable name
| -rw-r--r-- | routes/lnurl.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routes/lnurl.ts b/routes/lnurl.ts index 8c3abd0f..2ed390c1 100644 --- a/routes/lnurl.ts +++ b/routes/lnurl.ts @@ -162,9 +162,9 @@ export default { let invoice; for (const iid of invoices) { const i = await getInvoice(iid); - const paid = invoice.amount > 0 && invoice.received >= invoice.amount; - const old = Date.now() - invoice.created > fiveMinutes; - if (invoice.own && !(paid || old)) { + const paid = i.amount > 0 && i.received >= i.amount; + const old = Date.now() - i.created > fiveMinutes; + if (i.own && !(paid || old)) { invoice = i; break; } |
