diff --git a/core/bin/core_api.rs b/core/bin/core_api.rs index 572248f2daa5..78fd6bb8e837 100644 --- a/core/bin/core_api.rs +++ b/core/bin/core_api.rs @@ -102,12 +102,12 @@ impl APIState { app: app::App, credentials: run::Credentials, secrets: run::Secrets, - store_block_result: bool, + store_blocks_results: bool, ) { let mut run_manager = self.run_manager.lock(); run_manager .pending_apps - .push((app, credentials, secrets, store_block_result)); + .push((app, credentials, secrets, store_blocks_results)); } async fn stop_loop(&self) { @@ -603,7 +603,7 @@ struct RunsCreatePayload { config: run::RunConfig, credentials: run::Credentials, secrets: Vec, - store_block_result: Option, + store_blocks_results: Option, } async fn run_helper( @@ -851,7 +851,7 @@ async fn runs_create( app, credentials, secrets, - payload.store_block_result.unwrap_or(true), + payload.store_blocks_results.unwrap_or(true), ); ( StatusCode::OK, @@ -937,7 +937,7 @@ async fn runs_create_stream( databases_store, qdrant_clients, Some(tx.clone()), - payload.store_block_result.unwrap_or(true), + payload.store_blocks_results.unwrap_or(true), ) .await { diff --git a/front/pages/api/v1/w/[wId]/spaces/[spaceId]/apps/[aId]/runs/index.ts b/front/pages/api/v1/w/[wId]/spaces/[spaceId]/apps/[aId]/runs/index.ts index 47609c4e2f04..63c8bfbd442e 100644 --- a/front/pages/api/v1/w/[wId]/spaces/[spaceId]/apps/[aId]/runs/index.ts +++ b/front/pages/api/v1/w/[wId]/spaces/[spaceId]/apps/[aId]/runs/index.ts @@ -277,7 +277,7 @@ async function handler( } const flags = await getFeatureFlags(owner); - const storeBocksResultst = !flags.includes("disable_run_logs"); + const storeBlocksResults = !flags.includes("disable_run_logs"); logger.info( { @@ -302,7 +302,7 @@ async function handler( credentials, secrets, isSystemKey: auth.isSystemKey(), - storeBocksResultst, + storeBlocksResults, } ); diff --git a/front/pages/api/w/[wId]/spaces/[spaceId]/apps/[aId]/runs/index.ts b/front/pages/api/w/[wId]/spaces/[spaceId]/apps/[aId]/runs/index.ts index c02fbff83232..cbd9d94053e2 100644 --- a/front/pages/api/w/[wId]/spaces/[spaceId]/apps/[aId]/runs/index.ts +++ b/front/pages/api/w/[wId]/spaces/[spaceId]/apps/[aId]/runs/index.ts @@ -124,7 +124,7 @@ async function handler( const inputDataset = inputConfigEntry ? inputConfigEntry.dataset : null; const flags = await getFeatureFlags(owner); - const storeBocksResultst = !flags.includes("disable_run_logs"); + const storeBlocksResults = !flags.includes("disable_run_logs"); const dustRun = await coreAPI.createRun(owner, auth.groups(), { projectId: app.dustAPIProjectId, @@ -137,7 +137,7 @@ async function handler( config: { blocks: config }, credentials: credentialsFromProviders(providers), secrets, - storeBocksResultst, + storeBlocksResults, }); if (dustRun.isErr()) { diff --git a/types/src/front/lib/core_api.ts b/types/src/front/lib/core_api.ts index e4ed655aa0ae..e66806c09977 100644 --- a/types/src/front/lib/core_api.ts +++ b/types/src/front/lib/core_api.ts @@ -103,7 +103,7 @@ type CoreAPICreateRunParams = { credentials: CredentialsType; secrets: DustAppSecretType[]; isSystemKey?: boolean; - storeBocksResultst?: boolean; + storeBlocksResults?: boolean; }; type GetDatasetResponse = { @@ -307,7 +307,7 @@ export class CoreAPI { credentials, secrets, isSystemKey, - storeBocksResultst = true, + storeBlocksResults = true, }: CoreAPICreateRunParams ): Promise> { const response = await this._fetchWithError( @@ -329,7 +329,7 @@ export class CoreAPI { config: config, credentials: credentials, secrets: secrets, - store_blocks_results: storeBocksResultst, + store_blocks_results: storeBlocksResults, }), } ); @@ -351,7 +351,7 @@ export class CoreAPI { credentials, secrets, isSystemKey, - storeBocksResultst = true, + storeBlocksResults = true, }: CoreAPICreateRunParams ): Promise< CoreAPIResponse<{ @@ -378,7 +378,7 @@ export class CoreAPI { config: config, credentials: credentials, secrets: secrets, - store_blocks_results: storeBocksResultst, + store_blocks_results: storeBlocksResults, }), } );