From a30e19b6b2c06bf598e713cb5510a3577899098e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 6 Jun 2024 17:35:48 -0500 Subject: [PATCH] Fix nip05 endpoints --- src/controllers/api/admin.ts | 2 +- src/controllers/api/ditto.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/api/admin.ts b/src/controllers/api/admin.ts index 8fc8cf3..8c55318 100644 --- a/src/controllers/api/admin.ts +++ b/src/controllers/api/admin.ts @@ -49,7 +49,7 @@ const adminAccountsController: AppController = async (c) => { const events: NostrEvent[] = []; if (pending) { - for (const event of await store.query([{ kinds: [3036], ...params }], { signal })) { + for (const event of await store.query([{ kinds: [3036], '#p': [Conf.pubkey], ...params }], { signal })) { pubkeys.add(event.pubkey); events.push(event); } diff --git a/src/controllers/api/ditto.ts b/src/controllers/api/ditto.ts index cf08cd3..e6f398d 100644 --- a/src/controllers/api/ditto.ts +++ b/src/controllers/api/ditto.ts @@ -79,5 +79,5 @@ export const inviteRequestController: AppController = async (c) => { ], }, c); - return new Response('', { status: 204 }); + return new Response(null, { status: 204 }); };