diff options
| author | Adam Soltys <[email protected]> | 2024-12-19 13:30:58 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-12-19 13:30:58 -0800 |
| commit | e53f8f175ccb467469d7c7fcc9b2f3ed3b980a8c (patch) | |
| tree | b1c3e1d2c9b9ce7537af8d245c98b69700eaaff2 /lib/invoices.ts | |
| parent | 34bc04093ac503bd6be441822bf53afd9ed2179e (diff) | |
| download | coinos-server-e53f8f175ccb467469d7c7fcc9b2f3ed3b980a8c.tar.gz coinos-server-e53f8f175ccb467469d7c7fcc9b2f3ed3b980a8c.zip | |
handle offers
Diffstat (limited to 'lib/invoices.ts')
| -rw-r--r-- | lib/invoices.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/invoices.ts b/lib/invoices.ts index 3259c46b..c892517c 100644 --- a/lib/invoices.ts +++ b/lib/invoices.ts @@ -91,12 +91,12 @@ export const generate = async ({ invoice, user }) => { amount: amount ? `${amount + tip}sat` : "any", label: id, description: memo || "", - absolute_expiry: expiry, }); - console.log("R", r); hash = r.bolt12; text = r.bolt12; + + await s(`invoice:${r.offer_id}`, id); } else if (type === types.bitcoin) { hash = await bc.getNewAddress(); text = bip21(hash, invoice); |
