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/admin.go | |
parent | 078549518d31ffc18e209230584640328e5a0420 (diff) |
models: skip JSON for fields skipped by XORM
Reduce output JSON size by backup command
Diffstat (limited to 'models/admin.go')
-rw-r--r-- | models/admin.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |