refactor(orchestrator): narrow historical storage to reads (CL17)

This commit is contained in:
Boki 2026-10-26 20:30:40 -04:00
parent 03518c8ae4
commit 984dc1a9cc
17 changed files with 88 additions and 232 deletions

View file

@ -33,7 +33,7 @@ export function createDatasetRoutes(container: IServiceContainer) {
try {
const body = await readBody(c.req.raw);
// Request-local read adapter: no initialization, mode changes or shared trading runtime.
const storage = new StorageService(container, container.mongodb, null, null);
const storage = new StorageService(container.logger, container.mongodb, null);
const prepared = await prepareStoredDataset(body, storage, c.req.raw.signal);
c.req.raw.signal.throwIfAborted();
return c.json(prepared);