diff --git a/src/cloud/api.ts b/src/cloud/api.ts index d689cd8..39b24bf 100644 --- a/src/cloud/api.ts +++ b/src/cloud/api.ts @@ -141,13 +141,8 @@ export class ApiService { }) } - async getDeployment( - appId: string, - deploymentId: string, - ): Promise { - return this.request( - `/apps/${appId}/deployments/${deploymentId}/`, - ) + async getDeployment(deploymentId: string): Promise { + return this.request(`/deployments/${deploymentId}`) } async *streamAppLogs(options: { diff --git a/src/cloud/commands/deploy.ts b/src/cloud/commands/deploy.ts index e67aecd..ab787c0 100644 --- a/src/cloud/commands/deploy.ts +++ b/src/cloud/commands/deploy.ts @@ -142,7 +142,6 @@ export async function deploy(context: DeployContext): Promise { // Poll for deployment status const result = await pollDeploymentStatus( apiService, - config.app_id, deployment.id, updateStatus, ) @@ -244,12 +243,11 @@ async function uploadToS3( async function pollDeploymentStatus( apiService: ApiService, - appId: string, deploymentId: string, updateStatus: (text: string) => void, ): Promise { for (let attempt = 0; attempt < MAX_POLL_ATTEMPTS; attempt++) { - const deployment = await apiService.getDeployment(appId, deploymentId) + const deployment = await apiService.getDeployment(deploymentId) if ( deployment.status === DeploymentStatus.success ||