Compare commits

...
Author SHA1 Message Date
anuraghazra 8e0fa7fbec fix: fixed total stars count stat
Test / build (push) Canceled after 0s
2020-07-12 21:51:56 +05:30
Anurag Hazra 46369f5667 Merge pull request #31 from anuraghazra/integration-tests
tests: added integration tests for the api endpoints
2020-07-12 20:11:44 +05:30
+2 -2
View File
@@ -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 = {