aboutsummaryrefslogtreecommitdiffstats
path: root/lib/nwc.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-02-13 10:35:23 -0800
committerAdam Soltys <[email protected]>2025-02-13 10:35:23 -0800
commit7f296fbb38c01e2aa39940280755d301962ee262 (patch)
treec6f3288b03dd4fa1f9dd4508262bf04ae927dba6 /lib/nwc.ts
parent1888e338f2ccef16ccdb738cfdd04ffe516e023a (diff)
downloadcoinos-server-7f296fbb38c01e2aa39940280755d301962ee262.tar.gz
coinos-server-7f296fbb38c01e2aa39940280755d301962ee262.zip
nwc app prefix
Diffstat (limited to 'lib/nwc.ts')
-rw-r--r--lib/nwc.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nwc.ts b/lib/nwc.ts
index f92017d8..0a41a0e5 100644
--- a/lib/nwc.ts
+++ b/lib/nwc.ts
@@ -59,8 +59,8 @@ export default () => {
if (!methods.includes(method)) return;
try {
- const app = await g(pubkey);
- if (!app) fail(`pubkey not found`);
+ const app = await g(`app:${pubkey}`);
+ if (!app) fail("pubkey not found");
const user = await g(`user:${app.uid}`);
const result = await handle(method, params, ev, app, user);