aboutsummaryrefslogtreecommitdiffstats
path: root/models/statistic.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/statistic.go')
-rw-r--r--models/statistic.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/statistic.go b/models/statistic.go
index 175815081f..f39cdd5eb7 100644
--- a/models/statistic.go
+++ b/models/statistic.go
@@ -50,8 +50,8 @@ func GetStatistic() (stats Statistic) {
stats.Counter.Org = CountOrganizations()
stats.Counter.PublicKey, _ = e.Count(new(asymkey_model.PublicKey))
stats.Counter.Repo = repo_model.CountRepositories(true)
- stats.Counter.Watch, _ = e.Count(new(Watch))
- stats.Counter.Star, _ = e.Count(new(Star))
+ stats.Counter.Watch, _ = e.Count(new(repo_model.Watch))
+ stats.Counter.Star, _ = e.Count(new(repo_model.Star))
stats.Counter.Action, _ = e.Count(new(Action))
stats.Counter.Access, _ = e.Count(new(Access))