diff options
Diffstat (limited to 'internal/db/models.go')
-rw-r--r-- | internal/db/models.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/models.go b/internal/db/models.go index c9cc5a3b..88cdedae 100644 --- a/internal/db/models.go +++ b/internal/db/models.go @@ -210,7 +210,7 @@ type Statistic struct { } func GetStatistic(ctx context.Context) (stats Statistic) { - stats.Counter.User = CountUsers() + stats.Counter.User = Users.Count(ctx) stats.Counter.Org = CountOrganizations() stats.Counter.PublicKey, _ = x.Count(new(PublicKey)) stats.Counter.Repo = CountRepositories(true) |