From 48fd5545bfa4417e09923e2437316466608a4c24 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 18 Dec 2023 17:08:14 +0000 Subject: logging --- lib/invoices.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/invoices.js') 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); -- cgit v1.2.3