Skip to content

Commit

Permalink
fix: subscribe existing user
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jan 1, 2025
1 parent 63fc1b2 commit 7ae96af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/.well-known/lnurlp/[username]/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 });
Expand Down

0 comments on commit 7ae96af

Please sign in to comment.