Swapped API_PUBLIC_URL to API_HOST_NAME to match API app config

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2025-07-30 10:00:43 -04:00
parent 0fef454d17
commit 730e4b2313

View File

@@ -13,7 +13,7 @@ from notifications_python_client.errors import HTTPError, InvalidResponse
logger = logging.getLogger(__name__)
API_PUBLIC_URL = getenv("API_PUBLIC_URL", "localhost")
API_HOST_NAME = getenv("API_HOST_NAME", "http://localhost:6011")
class BaseAPIClient:
@@ -24,7 +24,7 @@ class BaseAPIClient:
"""
def __init__(
self, api_key, base_url=API_PUBLIC_URL, timeout=30
self, api_key, base_url=API_HOST_NAME, timeout=30
):
"""
Initialise the client