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/attachment.go | |
parent | 078549518d31ffc18e209230584640328e5a0420 (diff) |
models: skip JSON for fields skipped by XORM
Reduce output JSON size by backup command
Diffstat (limited to 'models/attachment.go')
-rw-r--r-- | models/attachment.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/attachment.go b/models/attachment.go index 4072e11e..31ca7f3e 100644 --- a/models/attachment.go +++ b/models/attachment.go @@ -27,7 +27,7 @@ type Attachment struct { ReleaseID int64 `xorm:"INDEX"` Name string - Created time.Time `xorm:"-"` + Created time.Time `xorm:"-" json:"-"` CreatedUnix int64 } |