From 39eccc62b1daacf241ede431fca848e6333cc3f5 Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Wed, 5 Dec 2018 16:50:06 +0300 Subject: [PATCH] Fix that filter ID is uppercase while js expects it to be lowercase. --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 3fead5a1..d141706b 100644 --- a/config.go +++ b/config.go @@ -74,7 +74,7 @@ type filter struct { Name string `json:"name" yaml:"name"` RulesCount int `json:"rulesCount" yaml:"-"` 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 }