Implement NStore interface from NLib

This commit is contained in:
Alex Gleason
2024-01-23 14:06:16 -06:00
parent 0a58233b4e
commit c6062874bd
32 changed files with 193 additions and 218 deletions

View File

@@ -63,7 +63,7 @@ function connectStream(socket: WebSocket) {
async function handleReq([_, subId, ...rest]: ClientREQ): Promise<void> {
const filters = prepareFilters(rest);
for (const event of await eventsDB.filter(filters, { limit: FILTER_LIMIT })) {
for (const event of await eventsDB.query(filters, { limit: FILTER_LIMIT })) {
send(['EVENT', subId, event]);
}