aboutsummaryrefslogtreecommitdiff
path: root/models/attachment.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-06-09 16:06:47 +0800
committerUnknwon <u@gogs.io>2018-06-09 16:06:47 +0800
commit53c8e4263b71d20e8decfcc7a6970e3497473bec (patch)
treed37ce3c2745f46a97c490e116268829c6f5ae923 /models/attachment.go
parent078549518d31ffc18e209230584640328e5a0420 (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.go2
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
}