diff options
| author | Adam Soltys <[email protected]> | 2022-07-26 23:25:06 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-08-01 22:18:18 -0700 |
| commit | 44160e4cd27999904c8928bed66e86e609d2083a (patch) | |
| tree | 5fd3a9eaf6cb6f883c27706a1d2bd03f98f2265a | |
| parent | 23511ec1018ba30b32974ef6cdd6619b59fa00f9 (diff) | |
| download | coinos-server-44160e4cd27999904c8928bed66e86e609d2083a.tar.gz coinos-server-44160e4cd27999904c8928bed66e86e609d2083a.zip | |
return json for lightning invoice
| -rw-r--r-- | routes/lightning/invoice.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/lightning/invoice.js b/routes/lightning/invoice.js index 054a4a46..31f23bd6 100644 --- a/routes/lightning/invoice.js +++ b/routes/lightning/invoice.js @@ -13,10 +13,10 @@ module.exports = ah(async (req, res) => { memo, 360 ); - res.send(invoice.bolt11); + res.send({ text: invoice.bolt11 }); } else { const invoice = await lnp.addInvoice({ value, memo }); - res.send(invoice.payment_request); + res.send({ text: invoice.payment_request }); } } catch (e) { l.error("problem creating invoice", e.message, e.stack); |
