summaryrefslogtreecommitdiffstats
path: root/models/statistic.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/statistic.go')
-rw-r--r--models/statistic.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/models/statistic.go b/models/statistic.go
index 5e72dc713d..fab35e62dc 100644
--- a/models/statistic.go
+++ b/models/statistic.go
@@ -7,6 +7,7 @@ package models
import (
"code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/models/login"
+ "code.gitea.io/gitea/models/webhook"
"code.gitea.io/gitea/modules/setting"
)
@@ -95,10 +96,10 @@ func GetStatistic() (stats Statistic) {
stats.Counter.Mirror, _ = e.Count(new(Mirror))
stats.Counter.Release, _ = e.Count(new(Release))
stats.Counter.LoginSource = login.CountSources()
- stats.Counter.Webhook, _ = e.Count(new(Webhook))
+ stats.Counter.Webhook, _ = e.Count(new(webhook.Webhook))
stats.Counter.Milestone, _ = e.Count(new(Milestone))
stats.Counter.Label, _ = e.Count(new(Label))
- stats.Counter.HookTask, _ = e.Count(new(HookTask))
+ stats.Counter.HookTask, _ = e.Count(new(webhook.HookTask))
stats.Counter.Team, _ = e.Count(new(Team))
stats.Counter.Attachment, _ = e.Count(new(Attachment))
stats.Counter.Project, _ = e.Count(new(Project))