aboutsummaryrefslogtreecommitdiffstats
path: root/addInvoice.js
diff options
context:
space:
mode:
Diffstat (limited to 'addInvoice.js')
-rw-r--r--addInvoice.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addInvoice.js b/addInvoice.js
index 89b25b66..fa183321 100644
--- a/addInvoice.js
+++ b/addInvoice.js
@@ -17,9 +17,10 @@ module.exports = (app, db, lnb) => async (req, res) => {
hash,
amount,
currency: "CAD",
- rate: app.get("rates").ask,
+ rate: app.get("rates")[req.user.currency],
tip,
confirmed: 1,
+ asset: 'LNBTC',
});
res.send(invoice);