From 7ae96af2a694ff0c4f52fa65752957dd488c9899 Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Wed, 1 Jan 2025 17:40:22 +0700 Subject: [PATCH] fix: subscribe existing user --- app/.well-known/lnurlp/[username]/callback/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/.well-known/lnurlp/[username]/callback/route.ts b/app/.well-known/lnurlp/[username]/callback/route.ts index e761976..57c6240 100644 --- a/app/.well-known/lnurlp/[username]/callback/route.ts +++ b/app/.well-known/lnurlp/[username]/callback/route.ts @@ -2,6 +2,7 @@ import { NextRequest } from "next/server"; import { findWalletConnection } from "@/app/db"; import { nwc } from "@getalby/sdk"; import { validateZapRequest } from "nostr-tools/nip57"; +import { NWC_POOL } from "@/app/nwc/nwcPool"; export async function GET( request: NextRequest, @@ -26,7 +27,7 @@ export async function GET( // subscribe to existing lightning addresses if (!connection.subscribed) { - await this.subscribeUser(connection); + await NWC_POOL.subscribeUser(connection); } const nwcClient = new nwc.NWCClient({ nostrWalletConnectUrl: connection.id });