diff options
| author | Adam Soltys <[email protected]> | 2023-12-18 17:08:14 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-18 17:08:14 +0000 |
| commit | 48fd5545bfa4417e09923e2437316466608a4c24 (patch) | |
| tree | b9cccc23a20f341566c1c2e284a1ae35b9d99ab5 /lib/invoices.js | |
| parent | 74d0ea356c9cdf5b393d4260c1c299c3aaac7ed6 (diff) | |
| download | coinos-server-48fd5545bfa4417e09923e2437316466608a4c24.tar.gz coinos-server-48fd5545bfa4417e09923e2437316466608a4c24.zip | |
logging
Diffstat (limited to 'lib/invoices.js')
| -rw-r--r-- | lib/invoices.js | 4 |
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); |
