From 3472428da875a843607570c8ece206d31f594a8f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 29 Dec 2023 21:12:57 -0600 Subject: [PATCH] relay: fix wrong function name --- src/controllers/nostr/relay.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/nostr/relay.ts b/src/controllers/nostr/relay.ts index fe1cc31..a1f4de0 100644 --- a/src/controllers/nostr/relay.ts +++ b/src/controllers/nostr/relay.ts @@ -96,7 +96,7 @@ function connectStream(socket: WebSocket) { /** Handle COUNT. Return the number of events matching the filters. */ async function handleCount([_, subId, ...rest]: ClientCOUNT): Promise { - const count = await eventsDB.countFilters(prepareFilters(rest)); + const count = await eventsDB.countEvents(prepareFilters(rest)); send(['COUNT', subId, { count, approximate: false }]); }