relay: fix wrong function name
This commit is contained in:
parent
f6a8ab570f
commit
3472428da8
|
@ -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<void> {
|
||||
const count = await eventsDB.countFilters(prepareFilters(rest));
|
||||
const count = await eventsDB.countEvents(prepareFilters(rest));
|
||||
send(['COUNT', subId, { count, approximate: false }]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue