Fix that filter ID is uppercase while js expects it to be lowercase.

This commit is contained in:
Eugene Bujak 2018-12-05 16:50:06 +03:00
parent ea25510a08
commit 39eccc62b1
1 changed files with 1 additions and 1 deletions

View File

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