Fix that filter ID is uppercase while js expects it to be lowercase.
This commit is contained in:
parent
ea25510a08
commit
39eccc62b1
|
@ -74,7 +74,7 @@ type filter struct {
|
||||||
Name string `json:"name" yaml:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
RulesCount int `json:"rulesCount" yaml:"-"`
|
RulesCount int `json:"rulesCount" yaml:"-"`
|
||||||
LastUpdated time.Time `json:"lastUpdated,omitempty" yaml:"last_updated,omitempty"`
|
LastUpdated time.Time `json:"lastUpdated,omitempty" yaml:"last_updated,omitempty"`
|
||||||
ID int64 // auto-assigned when filter is added (see nextFilterID)
|
ID int64 `json:"id"` // auto-assigned when filter is added (see nextFilterID), json by default keeps ID uppercase but we need lowercase
|
||||||
|
|
||||||
Contents []byte `json:"-" yaml:"-"` // not in yaml or json
|
Contents []byte `json:"-" yaml:"-"` // not in yaml or json
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue