aboutsummaryrefslogtreecommitdiffstats
path: root/lib/invoices.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-01-17 11:28:30 -0800
committerAdam Soltys <[email protected]>2025-01-17 11:28:30 -0800
commit06308bb12edff8e51b189b57d9f5a147959d743a (patch)
tree2dad64b95eb0976f581783a2a83a5c5d0be69134 /lib/invoices.ts
parent2e28b65fc3d790d9fece0f3aa22f35b2012d9739 (diff)
downloadcoinos-server-06308bb12edff8e51b189b57d9f5a147959d743a.tar.gz
coinos-server-06308bb12edff8e51b189b57d9f5a147959d743a.zip
send zaps for internal payments
Diffstat (limited to 'lib/invoices.ts')
-rw-r--r--lib/invoices.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/invoices.ts b/lib/invoices.ts
index d121353c..4710beb2 100644
--- a/lib/invoices.ts
+++ b/lib/invoices.ts
@@ -32,7 +32,6 @@ export const generate = async ({ invoice, user }) => {
secret,
} = invoice;
-
amount = parseInt(amount || 0);
tip = parseInt(tip) || null;
@@ -102,11 +101,11 @@ export const generate = async ({ invoice, user }) => {
await s(`invoice:${r.offer_id}`, id);
} else if (type === types.bitcoin) {
- address_type ||= "bech32"
+ address_type ||= "bech32";
hash = await bc.getNewAddress({ address_type });
text = bip21(hash, invoice);
} else if (type === types.liquid) {
- address_type ||= "blech32"
+ address_type ||= "blech32";
hash = await lq.getNewAddress({ address_type });
text = bip21(hash, invoice);
} else if (type === types.internal) {