Unverified Commit 61737f69 authored by Anurag Hazra's avatar Anurag Hazra Committed by GitHub
Browse files

Merge pull request #32 from anuraghazra/fix-stars

fix: fixed total stars count stat
parents 46369f56 8e0fa7fb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ async function fetchStats(username) {
          issues(first: 100) {
            totalCount
          }
          repositories(first: 100) {
          repositories(first: 100, orderBy: { direction: DESC, field: STARGAZERS }) {
            nodes {
              stargazers {
                totalCount
@@ -31,7 +31,7 @@ async function fetchStats(username) {
        }
      }
    `,
    variables: { login: username }
    variables: { login: username },
  });

  const stats = {