diff --git a/Aetheria.Rts.Web/Electron/aetheria-local-publication-reader.ts b/Aetheria.Rts.Web/Electron/aetheria-local-publication-reader.ts index e8b43a602..3f198033e 100644 --- a/Aetheria.Rts.Web/Electron/aetheria-local-publication-reader.ts +++ b/Aetheria.Rts.Web/Electron/aetheria-local-publication-reader.ts @@ -40,7 +40,10 @@ export class AetheriaLocalPublicationReader { schemaId: string, documentId: string, ): Promise { - return CultMesh.documentFromSingleFile(path, schemaId, { + return CultMesh.documentFromPublication({ + kind: "single-file", + path, + }, schemaId, documentId, { documentId, sourceId: documentId, }).latest(); diff --git a/Aetheria.Rts.Web/Electron/aetheria-remote-publication-reader.ts b/Aetheria.Rts.Web/Electron/aetheria-remote-publication-reader.ts index 9a0f07cc5..ef95f8aea 100644 --- a/Aetheria.Rts.Web/Electron/aetheria-remote-publication-reader.ts +++ b/Aetheria.Rts.Web/Electron/aetheria-remote-publication-reader.ts @@ -46,8 +46,12 @@ export class AetheriaRemotePublicationReader { } private async readSingleDocument(schemaId: string, recordKey: string): Promise { - return CultMesh.documentFromPeerSnapshot( - () => this.peer(), + return CultMesh.documentFromPublication( + { + kind: "peer-snapshot", + peer: () => this.peer(), + endpoint: this.endpoint, + }, schemaId, recordKey, { diff --git a/Aetheria.Rts.Web/scripts/verify-stage7b-rts-client.ps1 b/Aetheria.Rts.Web/scripts/verify-stage7b-rts-client.ps1 index 23d73e430..d79fe1e81 100644 --- a/Aetheria.Rts.Web/scripts/verify-stage7b-rts-client.ps1 +++ b/Aetheria.Rts.Web/scripts/verify-stage7b-rts-client.ps1 @@ -491,9 +491,9 @@ foreach ($symbol in $requiredProjectionSymbols) { } } -& rg -q 'CultMesh.documentFromSingleFile' Electron/aetheria-local-publication-reader.ts +& rg -q 'CultMesh.documentFromPublication' Electron/aetheria-local-publication-reader.ts if ($LASTEXITCODE -ne 0) { - Write-Error "Stage 7B verifier failed: local publications should be read through CultMesh document handles." + Write-Error "Stage 7B verifier failed: local publications should be read through configured CultMesh document handles." } $forbiddenLocalPublicationReaderPlumbing = & rg -n 'SingleFileMessagePackBackingStore|decode\(|pullAll\(' Electron/aetheria-local-publication-reader.ts 2>$null