aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-08-26 21:52:40 -0700
committerAdam Soltys <[email protected]>2025-08-26 21:52:40 -0700
commit0dc07d2e32a9afc5ae4728bb2c7c9b9b52059cdf (patch)
tree24f02bb565c7113235c0cbe61a2cb1fe8e9702be /lib
parent85c40814aec0be2c77a801a84d100937e6396543 (diff)
downloadcoinos-server-0dc07d2e32a9afc5ae4728bb2c7c9b9b52059cdf.tar.gz
coinos-server-0dc07d2e32a9afc5ae4728bb2c7c9b9b52059cdf.zip
handle 0 tip
Diffstat (limited to 'lib')
-rw-r--r--lib/invoices.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/invoices.ts b/lib/invoices.ts
index 48eb4879..45987ae1 100644
--- a/lib/invoices.ts
+++ b/lib/invoices.ts
@@ -80,9 +80,10 @@ export const generate = async ({ invoice, user }) => {
r.bolt11 = bolt11;
} else {
expiry ||= 60 * 60 * 24 * 30;
+
r = await ln.invoice({
amount_msat: amount ? `${amount + tip}sat` : "any",
- label: `${id} ${user.username} ${new Date()}`,
+ label: `${id} ${user.username} ${Date.now()}`,
description: memo || "",
expiry,
deschashonly: true,