diff options
Diffstat (limited to 'routes/lightning/invoice.js')
| -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 51eff332..701ed3c2 100644 --- a/routes/lightning/invoice.js +++ b/routes/lightning/invoice.js @@ -3,10 +3,10 @@ module.exports = ah(async (req, res) => { try { if (config.lna.clightning) { - const invoice = await lnb.invoice(`${amount + tip}sat` || "any", new Date(), memo, 360); + const invoice = await lna.invoice(`${amount + tip}sat` || "any", new Date(), memo, 360); res.send(invoice.bolt11); } else { - const invoice = await lnb.addInvoice({ value: amount + tip, memo }); + const invoice = await lna.addInvoice({ value: amount + tip, memo }); res.send(invoice.payment_request); } } catch (e) { |
