Skip to content

Commit

Permalink
Rename 'deploy' payload keys to 'deployment' (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
danafallon authored Dec 6, 2024
1 parent 8f8bad8 commit e1450a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/artieclient/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (DeploymentClient) basePath() string {
}

type deploymentAPIResponse struct {
Deployment deploymentWithAdvSettings `json:"deploy"`
Deployment deploymentWithAdvSettings `json:"deployment"`
}

type validationResponse struct {
Expand Down Expand Up @@ -148,8 +148,8 @@ func (dc DeploymentClient) Update(ctx context.Context, deployment Deployment) (D
}

body := map[string]any{
"deploy": deployment,
"startDeploy": true,
"deployment": deployment,
"startDeployment": true,
}

response, err := makeRequest[deploymentAPIResponse](ctx, dc.client, http.MethodPost, path, body)
Expand Down

0 comments on commit e1450a6

Please sign in to comment.