diff options
| author | Adam Soltys <[email protected]> | 2023-06-06 00:37:53 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-06-06 00:37:53 -0700 |
| commit | 9174f32caa5313bc620eef37c535b04173364389 (patch) | |
| tree | 5e451590ecad7a8b254e5e4ed9a9ce76847dbde4 | |
| parent | e3d25a283b3e14ddec1413e4afe8b01588d7e831 (diff) | |
| download | coinos-server-9174f32caa5313bc620eef37c535b04173364389.tar.gz coinos-server-9174f32caa5313bc620eef37c535b04173364389.zip | |
make invoice expiry configurable
| -rw-r--r-- | lib/invoices.js | 3 |
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, |
