mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
relay: fix wrong function name
This commit is contained in:
parent
f6a8ab570f
commit
3472428da8
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ function connectStream(socket: WebSocket) {
|
||||||
|
|
||||||
/** Handle COUNT. Return the number of events matching the filters. */
|
/** Handle COUNT. Return the number of events matching the filters. */
|
||||||
async function handleCount([_, subId, ...rest]: ClientCOUNT): Promise<void> {
|
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 }]);
|
send(['COUNT', subId, { count, approximate: false }]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue