aboutsummaryrefslogtreecommitdiffstats
path: root/lib/invoices.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/invoices.ts')
-rw-r--r--lib/invoices.ts3
1 files changed, 1 insertions, 2 deletions
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;