aboutsummaryrefslogtreecommitdiff
path: root/models/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/models.go b/models/models.go
index 8149bb51..b26cf60b 100644
--- a/models/models.go
+++ b/models/models.go
@@ -78,7 +78,7 @@ var (
func init() {
tables = append(tables,
- new(User), new(PublicKey), new(Oauth2), new(AccessToken),
+ new(User), new(PublicKey), new(AccessToken),
new(Repository), new(DeployKey), new(Collaboration), new(Access),
new(Watch), new(Star), new(Follow), new(Action),
new(Issue), new(PullRequest), new(Comment), new(Attachment), new(IssueUser),
@@ -236,7 +236,7 @@ func GetStatistic() (stats Statistic) {
stats.Counter.Access, _ = x.Count(new(Access))
stats.Counter.Issue, _ = x.Count(new(Issue))
stats.Counter.Comment, _ = x.Count(new(Comment))
- stats.Counter.Oauth, _ = x.Count(new(Oauth2))
+ stats.Counter.Oauth = 0
stats.Counter.Follow, _ = x.Count(new(Follow))
stats.Counter.Mirror, _ = x.Count(new(Mirror))
stats.Counter.Release, _ = x.Count(new(Release))