Skip to content

Commit

Permalink
Fix API URL (#236)
Browse files Browse the repository at this point in the history
Uses the new API endpoint to update analysis metadata.

Signed-off-by: Rémy Greinhofer <[email protected]>
  • Loading branch information
rgreinho authored Sep 2, 2024
1 parent 83f233b commit 91cd56c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lambdas/src/bna-fargate-run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async fn function_handler(event: LambdaEvent<TaskInput>) -> Result<TaskOutput, E
let api_hostname = get_aws_parameter_value("BNA_API_HOSTNAME").await?;

// Prepare the API URL.
let url = format!("{api_hostname}/bnas/analysis");
let url = format!("{api_hostname}/ratings/analysis");

// Authenticate the service account.
let auth = authenticate_service_account()
Expand Down
2 changes: 1 addition & 1 deletion lambdas/src/bna-setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async fn function_handler(event: LambdaEvent<TaskInput>) -> Result<TaskOutput, E
let api_hostname = get_aws_parameter_value("BNA_API_HOSTNAME").await?;

// Prepare the API URL.
let url = format!("{api_hostname}/bnas/analysis");
let url = format!("{api_hostname}/ratings/analysis");

// Authenticate the service account.
info!("Authenticating service account...");
Expand Down
2 changes: 1 addition & 1 deletion lambdas/src/bna-teardown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async fn function_handler(event: LambdaEvent<TaskInput>) -> Result<(), Error> {
let api_hostname = get_aws_parameter_value("BNA_API_HOSTNAME").await?;

// Prepare the API URL.
let url = format!("{api_hostname}/bnas/analysis");
let url = format!("{api_hostname}/ratings/analysis");

// Authenticate the service account.
let auth = authenticate_service_account()
Expand Down

0 comments on commit 91cd56c

Please sign in to comment.