rename status to state in fire response (#2313)

This commit is contained in:
blotus 2023-06-29 11:06:49 +02:00 committed by GitHub
parent ebe25d7653
commit e61d5a3034
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -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,

View file

@ -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"`
}