Publish daemon SoA view from tick result

This commit is contained in:
Meta Vens 2026-06-28 04:35:04 +01:00
commit 6172136de8
3 changed files with 13 additions and 6 deletions

View file

@ -751,10 +751,10 @@ static async Task PublishDaemonApiDocumentsAsync(
AetheriaRuntimeDaemonTickResult result)
{
await node.PutDaemonFrameAsync(result.Frame).ConfigureAwait(false);
if (AetheriaRuntimeDaemonSoaViewStore.TryReadView(node.StatePath, out var soaView) &&
string.Equals(soaView.Schema, AetheriaRuntimeDaemonSchemas.SoaView, StringComparison.Ordinal))
if (result.SoaView != null &&
string.Equals(result.SoaView.Schema, AetheriaRuntimeDaemonSchemas.SoaView, StringComparison.Ordinal))
{
await node.PutDaemonSoaViewAsync(soaView).ConfigureAwait(false);
await node.PutDaemonSoaViewAsync(result.SoaView).ConfigureAwait(false);
}
if (result.ProviderAdvertisement != null)