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 }]); }