Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Qantas94Heavy committed Apr 19, 2024
1 parent fd46d12 commit afb3c7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sentry/issue_alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type IssueAlert struct {
CreatedBy *IssueAlertCreatedBy `json:"createdBy,omitempty"`
Environment *string `json:"environment,omitempty"`
Projects []string `json:"projects,omitempty"`
TaskUUID *string `json:"uuid",omitempty` // This is actually the UUID of the async task that can be spawned to create the rule
TaskUUID *string `json:"uuid,omitempty"` // This is actually the UUID of the async task that can be spawned to create the rule
}

// IssueAlertCreatedBy for defining the rule creator.
Expand Down Expand Up @@ -109,6 +109,7 @@ func (s *IssueAlertsService) Create(ctx context.Context, organizationSlug string
}
}

// Remove task UUID as it's no longer needed, otherwise it will end up in the JSON output.
alert.TaskUUID = nil
return alert, resp, nil
}
Expand Down
1 change: 1 addition & 0 deletions sentry/metric_alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func (s *MetricAlertsService) Create(ctx context.Context, organizationSlug strin
}
}

// Remove task UUID as it's no longer needed, otherwise it will end up in the JSON output.
alert.TaskUUID = nil
return alert, resp, nil
}
Expand Down

0 comments on commit afb3c7b

Please sign in to comment.