diff options
author | Unknwon <u@gogs.io> | 2018-06-09 16:06:47 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-06-09 16:06:47 +0800 |
commit | 53c8e4263b71d20e8decfcc7a6970e3497473bec (patch) | |
tree | d37ce3c2745f46a97c490e116268829c6f5ae923 /models/org_team.go | |
parent | 078549518d31ffc18e209230584640328e5a0420 (diff) |
models: skip JSON for fields skipped by XORM
Reduce output JSON size by backup command
Diffstat (limited to 'models/org_team.go')
-rw-r--r-- | models/org_team.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/org_team.go b/models/org_team.go index 6dd3876f..709db547 100644 --- a/models/org_team.go +++ b/models/org_team.go @@ -22,8 +22,8 @@ type Team struct { Name string Description string Authorize AccessMode - Repos []*Repository `xorm:"-"` - Members []*User `xorm:"-"` + Repos []*Repository `xorm:"-" json:"-"` + Members []*User `xorm:"-" json:"-"` NumRepos int NumMembers int } |