refactor: move inMemoryDb hook

This commit is contained in:
2024-01-19 10:09:36 +00:00
parent 0307bacd30
commit 2b1cf34424
3 changed files with 2 additions and 20 deletions

View File

@ -1,5 +1,6 @@
import { removeUndefined, throwIfOffline } from "@snort/shared";
import { mapEventToProfile, NostrEvent, NostrSystem, ProfileLoaderService, socialGraphInstance } from "@snort/system";
import inMemoryDB from "@snort/system/src/InMemoryDB";
import { EventsCache, Relay, RelayMetrics, SystemDb, UserCache, UserRelays } from "@/Cache";
import { LoginStore } from "@/Utils/Login";
@ -29,6 +30,7 @@ System.on("event", (_, ev) => {
Relay.event(ev);
EventsCache.discover(ev);
UserCache.discover(ev);
inMemoryDB.handleEvent(ev);
socialGraphInstance.handleEvent(ev);
});