From e53f8f175ccb467469d7c7fcc9b2f3ed3b980a8c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 19 Dec 2024 13:30:58 -0800 Subject: handle offers --- lib/invoices.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/invoices.ts') 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); -- cgit v1.2.3