Refactor EventStore to use a more Set-like interface

This commit is contained in:
Alex Gleason
2024-01-08 15:13:10 -06:00
parent f8a0698c3a
commit 937ae1eab6
28 changed files with 111 additions and 111 deletions

View File

@@ -51,7 +51,7 @@ async function updateEvent<K extends number, E extends EventStub<K>>(
fn: (prev: Event<K> | undefined) => E,
c: AppContext,
): Promise<Event<K>> {
const [prev] = await eventsDB.getEvents([filter], { limit: 1 });
const [prev] = await eventsDB.filter([filter], { limit: 1 });
return createEvent(fn(prev), c);
}