Skip to content

Commit

Permalink
fix: update stac_api_url and raster_api_url properties to check corre…
Browse files Browse the repository at this point in the history
…ct variables (#431)

### What? / Why?

- Update the condition to check the correct variable

### Testing?

- Deployed to UAH dev for testing
  • Loading branch information
botanical authored Sep 27, 2024
2 parents e53f81b + 8ebddec commit 675268b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ingest_api/infrastructure/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@ def veda_stac_api_cf_url(self) -> str:
@property
def veda_raster_api_cf_url(self) -> str:
"""inferred cloudfront url of the raster api if app is configured with a custom host and root path"""
if self.custom_host and self.stac_root_path:
if self.custom_host and self.raster_root_path:
return f"https://{self.custom_host}{self.raster_root_path}"
return self.raster_api_url

0 comments on commit 675268b

Please sign in to comment.