diff options
| author | Adam Soltys <[email protected]> | 2023-10-24 23:34:53 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-10-24 23:35:23 -0700 |
| commit | 18512a2355e2255e26a0f7385f73b3966574d9be (patch) | |
| tree | 307fc40dce84c5d48744cc1c06c3227fb5e35f62 | |
| parent | e26010ea0a1bcfa03545768e19e7d5df1a2d30cb (diff) | |
| download | coinos-server-18512a2355e2255e26a0f7385f73b3966574d9be.tar.gz coinos-server-18512a2355e2255e26a0f7385f73b3966574d9be.zip | |
fix classic payments
| -rw-r--r-- | routes/invoices.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/routes/invoices.js b/routes/invoices.js index 9cdd4dad..329f163d 100644 --- a/routes/invoices.js +++ b/routes/invoices.js @@ -8,8 +8,6 @@ import ln from "$lib/ln"; export default { async get({ params: { id } }, res) { - let pr; - let invoice = await g(`invoice:${id}`); if (typeof invoice === "string") invoice = await g(`invoice:${invoice}`); @@ -20,10 +18,11 @@ export default { "profile", "banner", "currency", - "username" + "username", + "pubkey" ]); } else if (config.classic) { - invoice = await got(`${config.classic}/invoice/${pr}`).json(); + invoice = await got(`${config.classic}/invoice/${id}`).json(); if (invoice) { invoice.id = invoice.uuid; invoice.classic = true; |
