From c7bfb41da3c6c4505ba075670a11921ba1258cea Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 24 Jan 2025 20:47:39 +0000 Subject: pass user pubkey --- lib/nwc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/nwc.ts b/lib/nwc.ts index 434e0774..912a2fc3 100644 --- a/lib/nwc.ts +++ b/lib/nwc.ts @@ -113,7 +113,7 @@ const handle = (method, params, user, ev) => inv.payment_preimage = preimage; inv.paid_at = Math.floor(Date.now() / 1000); try { - await handleZap(inv, pubkey); + await handleZap(inv, user.pubkey); } catch (e) { console.log("zap receipt failed", e); } -- cgit v1.2.3