diff options
| author | Adam Soltys <[email protected]> | 2023-10-24 23:35:42 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-10-24 23:35:42 -0700 |
| commit | 66854d5de5da6f8dae3fce506f65bc5f28de1a6e (patch) | |
| tree | 307fc40dce84c5d48744cc1c06c3227fb5e35f62 | |
| parent | b796c9a35fb01e52737e5984da7c57fc4e79f8ef (diff) | |
| parent | 18512a2355e2255e26a0f7385f73b3966574d9be (diff) | |
| download | coinos-server-66854d5de5da6f8dae3fce506f65bc5f28de1a6e.tar.gz coinos-server-66854d5de5da6f8dae3fce506f65bc5f28de1a6e.zip | |
Merge branch 'master' into prod
| -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; |
