diff --git a/lib/github.js b/lib/github.js index 152473a..751faf6 100644 --- a/lib/github.js +++ b/lib/github.js @@ -16,9 +16,7 @@ const repoQuerySnip = `{ createdAt updatedAt pushedAt - stargazers { - totalCount - } + stargazerCount watchers { totalCount } @@ -132,7 +130,7 @@ class Repo { this.created = repo.createdAt this.updated = repo.updatedAt this.pushed = repo.pushedAt - this.stars = repo.stargazers.totalCount + this.stars = repo.stargazerCount this.watchers = repo.watchers.totalCount this.forks = repo.forks.totalCount this.openIssues = repo.issues.totalCount