aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/invoices.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/invoices.js b/lib/invoices.js
index 185be3c6..b4583ea1 100644
--- a/lib/invoices.js
+++ b/lib/invoices.js
@@ -12,6 +12,7 @@ import ln from "$lib/ln";
export let generate = async ({ invoice, user, sender, memo }) => {
let {
currency,
+ expiry,
tip,
amount,
rate,
@@ -41,7 +42,7 @@ export let generate = async ({ invoice, user, sender, memo }) => {
amount ? `${amount + tip}sat` : "any",
new Date(),
memo || "",
- 3600,
+ expiry || 3600,
undefined,
undefined,
undefined,