Merge pull request #32 from anuraghazra/fix-stars

fix: fixed total stars count stat
This commit is contained in:
Anurag Hazra 2020-07-12 21:54:17 +05:30 committed by GitHub
commit 61737f6985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ async function fetchStats(username) {
issues(first: 100) { issues(first: 100) {
totalCount totalCount
} }
repositories(first: 100) { repositories(first: 100, orderBy: { direction: DESC, field: STARGAZERS }) {
nodes { nodes {
stargazers { stargazers {
totalCount totalCount
@ -31,7 +31,7 @@ async function fetchStats(username) {
} }
} }
`, `,
variables: { login: username } variables: { login: username },
}); });
const stats = { const stats = {