rename status to state in fire response (#2313)
This commit is contained in:
parent
ebe25d7653
commit
e61d5a3034
2 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue