From 53c8e4263b71d20e8decfcc7a6970e3497473bec Mon Sep 17 00:00:00 2001 From: Unknwon <u@gogs.io> 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/admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/admin.go') diff --git a/models/admin.go b/models/admin.go index 51cf25d9..d82dcb32 100644 --- a/models/admin.go +++ b/models/admin.go @@ -30,7 +30,7 @@ type Notice struct { ID int64 Type NoticeType Description string `xorm:"TEXT"` - Created time.Time `xorm:"-"` + Created time.Time `xorm:"-" json:"-"` CreatedUnix int64 } -- cgit v1.2.3