refactor: event manager (#25565)

This commit is contained in:
Jason Rasmussen
2026-01-29 08:52:18 -05:00
committed by GitHub
parent 8db61d341f
commit 10b53b525d
21 changed files with 84 additions and 68 deletions
@@ -37,9 +37,11 @@ class AssetCacheManager {
#ocrCache = new AsyncCache<AssetOcrResponseDto[]>();
constructor() {
eventManager.on('AssetEditsApplied', () => {
this.#assetCache.clear();
this.#ocrCache.clear();
eventManager.on({
AssetEditsApplied: () => {
this.#assetCache.clear();
this.#ocrCache.clear();
},
});
}