From a8dce552da00fcdd144dbc2a39d660c342d4c7b5 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 19 Sep 2024 13:04:01 -0700 Subject: nwc make_invoice --- lib/invoices.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/invoices.ts') diff --git a/lib/invoices.ts b/lib/invoices.ts index 45c97fe2..0094c6d7 100644 --- a/lib/invoices.ts +++ b/lib/invoices.ts @@ -10,7 +10,7 @@ import ln from "$lib/ln"; let bc = rpc(config.bitcoin); let lq = rpc(config.liquid); -export let generate = async ({ invoice, user, sender = undefined }) => { +export let generate = async ({ invoice, user }) => { let { bolt11, account, @@ -34,7 +34,6 @@ export let generate = async ({ invoice, user, sender = undefined }) => { tip = parseInt(tip) || null; if (user) user = await getUser(user.username); - else if (sender) user = await getUser(sender.username); if (!user) fail("user not provided"); if (account === user.id) account = undefined; -- cgit v1.2.3