Make runtime catalog a typed cached authority

This commit is contained in:
Meta Vens 2026-07-20 00:39:09 +01:00
commit 1747a8788e
10 changed files with 86 additions and 12 deletions

View file

@ -54,7 +54,8 @@ public static class AetheriaEveCommandBridge
switch (command.Kind)
{
case AetheriaRuntimeEveCommandKind.CatalogRefresh:
var catalog = await node.RuntimeCatalog().LatestAsync().ConfigureAwait(false);
await node.FlushAsync().ConfigureAwait(false);
var catalog = await node.RefreshRuntimeCatalogAsync().ConfigureAwait(false);
await node.MutableDocument<EveSurfaceDocument>(AetheriaStateNode.CatalogSurfaceKey)
.ReplaceAsync(AetheriaEveSurfaceDocuments.BuildCatalogSurface(catalog, command.IssuedAtUtc))
.ConfigureAwait(false);