From 53c8e4263b71d20e8decfcc7a6970e3497473bec Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 9 Jun 2018 16:06:47 +0800 Subject: models: skip JSON for fields skipped by XORM Reduce output JSON size by backup command --- models/attachment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/attachment.go') 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 } -- cgit v1.2.3