aboutsummaryrefslogtreecommitdiffstats
path: root/lib/invoices.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/invoices.js')
-rw-r--r--lib/invoices.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/invoices.js b/lib/invoices.js
index b5718e23..8023bdbb 100644
--- a/lib/invoices.js
+++ b/lib/invoices.js
@@ -86,6 +86,11 @@ export let generate = async ({ invoice, user, sender, memo }) => {
if (!user.username === 'lightningins') l(type, "invoice", user.username, amount);
+ if (type === "liquid") {
+ let { unconfidential } = await lq.getAddressInfo(hash);
+ await s(`invoice:${unconfidential}`, id);
+ }
+
await s(`invoice:${hash}`, id);
await s(`invoice:${id}`, invoice);
await db.lPush(`${user.id}:invoices`, id);