From ba07b04fbbf9de058907db50a01daebf2ff4d6bb Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 3 Aug 2020 22:38:36 -0700 Subject: handle liquid payments to user url --- routes/invoices.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routes/invoices.js') diff --git a/routes/invoices.js b/routes/invoices.js index f344e9f9..ba4da254 100644 --- a/routes/invoices.js +++ b/routes/invoices.js @@ -29,6 +29,7 @@ app.post("/invoice", ah(async (req, res, next) => { l.info( "creating invoice", + invoice.address, invoice.text, user.username, invoice.network, @@ -55,5 +56,6 @@ app.post("/invoice", ah(async (req, res, next) => { invoice = exists ? await exists.update(invoice) : await db.Invoice.create(invoice); addresses[invoice.address] = user.username; + if (invoice.unconfidential) addresses[invoice.unconfidential] = user.username; res.send(invoice); })); -- cgit v1.2.3