Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/fastapi_cloud_cli/commands/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ def progress_callback(bytes_read: int) -> None:
logger.debug("Upload notification sent successfully")


def _get_app(client: APIClient, app_slug: str) -> AppResponse | None:
response = client.get(f"/apps/{app_slug}")
def _get_app(client: APIClient, app_id: str) -> AppResponse | None:
response = client.get(f"/apps/{app_id}")

if response.status_code == 404:
return None
Expand Down Expand Up @@ -793,7 +793,7 @@ def deploy(
with toolkit.progress("Checking app...", transient=True) as progress:
with client.handle_http_errors(progress):
logger.debug("Checking app with ID: %s", target_app_id)
app = _get_app(client=client, app_slug=target_app_id)
app = _get_app(client=client, app_id=target_app_id)

if not app:
logger.debug("App not found in API")
Expand Down
Loading