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/two_factor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/two_factor.go') diff --git a/models/two_factor.go b/models/two_factor.go index 2de312eb..b9e3581d 100644 --- a/models/two_factor.go +++ b/models/two_factor.go @@ -25,7 +25,7 @@ type TwoFactor struct { ID int64 UserID int64 `xorm:"UNIQUE"` Secret string - Created time.Time `xorm:"-"` + Created time.Time `xorm:"-" json:"-"` CreatedUnix int64 } -- cgit v1.2.3