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/login_source.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'models/login_source.go') diff --git a/models/login_source.go b/models/login_source.go index 436a0ffd..e72aa496 100644 --- a/models/login_source.go +++ b/models/login_source.go @@ -135,12 +135,12 @@ type LoginSource struct { IsActived bool `xorm:"NOT NULL DEFAULT false"` Cfg core.Conversion `xorm:"TEXT"` - Created time.Time `xorm:"-"` + Created time.Time `xorm:"-" json:"-"` CreatedUnix int64 - Updated time.Time `xorm:"-"` + Updated time.Time `xorm:"-" json:"-"` UpdatedUnix int64 - LocalFile *AuthSourceFile `xorm:"-"` + LocalFile *AuthSourceFile `xorm:"-" json:"-"` } func (s *LoginSource) BeforeInsert() { -- cgit v1.2.3