aboutsummaryrefslogtreecommitdiff
path: root/models/mirror.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/mirror.go')
-rw-r--r--models/mirror.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/mirror.go b/models/mirror.go
index 76bcd9ec..a2d3d629 100644
--- a/models/mirror.go
+++ b/models/mirror.go
@@ -29,17 +29,17 @@ var MirrorQueue = sync.NewUniqueQueue(setting.Repository.MirrorQueueLength)
type Mirror struct {
ID int64
RepoID int64
- Repo *Repository `xorm:"-"`
+ Repo *Repository `xorm:"-" json:"-"`
Interval int // Hour.
EnablePrune bool `xorm:"NOT NULL DEFAULT true"`
// Last and next sync time of Git data from upstream
- LastSync time.Time `xorm:"-"`
+ LastSync time.Time `xorm:"-" json:"-"`
LastSyncUnix int64 `xorm:"updated_unix"`
- NextSync time.Time `xorm:"-"`
+ NextSync time.Time `xorm:"-" json:"-"`
NextSyncUnix int64 `xorm:"next_update_unix"`
- address string `xorm:"-"`
+ address string `xorm:"-" json:"-"`
}
func (m *Mirror) BeforeInsert() {