Skip to content

Commit

Permalink
fix api
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Sep 29, 2023
1 parent 45a1ecb commit 67a5829
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/project_budget.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ func (client *ApiClient) ProjectBudget(projectId string) (*ProjectBudget, error)
func (client *ApiClient) ProjectBudgetUpdate(projectId string, payload *ProjectBudgetUpdatePayload) (*ProjectBudget, error) {
var result ProjectBudget

if payload.Thresholds == nil {
payload.Thresholds = []int{}
}

err := client.http.Put("/costs/project/"+projectId+"/budget", payload, &result)
if err != nil {
return nil, err
Expand Down

0 comments on commit 67a5829

Please sign in to comment.