aboutsummaryrefslogtreecommitdiffstats
path: root/lib/invoices.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-01-23 15:22:05 -0800
committerAdam Soltys <[email protected]>2024-01-23 15:22:08 -0800
commit9c7d46dbd78e4ba217adbc9d48fbd6e91f5fad99 (patch)
tree7637d90396c0006527c44a0e69cf6f2f2a7aa0b3 /lib/invoices.js
parent05967b7d4b004860113ea44cf1b01b9135437f1e (diff)
downloadcoinos-server-9c7d46dbd78e4ba217adbc9d48fbd6e91f5fad99.tar.gz
coinos-server-9c7d46dbd78e4ba217adbc9d48fbd6e91f5fad99.zip
format
Diffstat (limited to 'lib/invoices.js')
-rw-r--r--lib/invoices.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/invoices.js b/lib/invoices.js
index 8023bdbb..8ac8a868 100644
--- a/lib/invoices.js
+++ b/lib/invoices.js
@@ -47,7 +47,7 @@ export let generate = async ({ invoice, user, sender, memo }) => {
description: memo || "",
expiry: expiry || 60 * 60 * 24 * 30,
deschashonly: true,
- cltv: 19
+ cltv: 19,
});
hash = r.bolt11;
@@ -84,8 +84,6 @@ export let generate = async ({ invoice, user, sender, memo }) => {
webhook,
};
- if (!user.username === 'lightningins') l(type, "invoice", user.username, amount);
-
if (type === "liquid") {
let { unconfidential } = await lq.getAddressInfo(hash);
await s(`invoice:${unconfidential}`, id);