Skip to content

Commit

Permalink
rename status to state in fire response (#2313)
Browse files Browse the repository at this point in the history
  • Loading branch information
blotus authored Jun 29, 2023
1 parent ebe25d7 commit e61d5a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/cticlient/example/fire.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ func main() {
}

for _, item := range items {
if item.State == "refused" {
continue
}
banDuration := time.Until(item.Expiration.Time)
allItems = append(allItems, []string{
item.Ip,
Expand Down
2 changes: 1 addition & 1 deletion pkg/cticlient/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ type FireItem struct {
BackgroundNoiseScore *int `json:"background_noise_score"`
Scores CTIScores `json:"scores"`
References []CTIReferences `json:"references"`
Status string `json:"status"`
State string `json:"state"`
Expiration CustomTime `json:"expiration"`
}

Expand Down

0 comments on commit e61d5a3

Please sign in to comment.