fix: hide file.data in config
continuous-integration/drone/tag Build is passing Details

feat/muzan v0.1.10
Evan Chen 2021-11-09 11:41:41 +08:00
parent 85b5416db5
commit 091c026a46
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ type ConfigUI struct {
Files []*File `json:"files"`
fileIndex map[string]int
Actions []Action `json:"actions"`
Integrations []*Integration `json:"integrations"`
Integrations []*Integration `json:"integrations,omitempty"`
ResultBellow bool `json:"result_bellow"`
HideConfig bool `json:"hide_config"`

View File

@ -21,7 +21,7 @@ type File struct {
Order int `json:"order"`
// used for parsing post data
Data string `json:"data"`
Data string `json:"data,omitempty"`
lock sync.RWMutex `json:"-"`
owner *ConfigUI `json:"-"`