aboutsummaryrefslogtreecommitdiffstats
path: root/lib/invoices.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/invoices.js')
-rw-r--r--lib/invoices.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/invoices.js b/lib/invoices.js
index 75b0ef39..1a1adda2 100644
--- a/lib/invoices.js
+++ b/lib/invoices.js
@@ -42,7 +42,7 @@ export let generate = async ({ invoice, user, sender, memo }) => {
if (type === types.lightning) {
let r = await ln.invoice({
amount_msat: amount ? `${amount + tip}sat` : "any",
- label: new Date(),
+ label: id,
description: memo || "",
expiry: expiry || 60 * 60 * 24 * 30,
deschashonly: true
@@ -79,7 +79,7 @@ export let generate = async ({ invoice, user, sender, memo }) => {
webhook
};
- l("creating invoice", id, user.username, amount, tip, currency, invoice.hash);
+ l(type, "invoice", user.username, amount);
await s(`invoice:${hash}`, id);
await s(`invoice:${id}`, invoice);