From 8e0fa7fbecabfac086807ab189d92619db202d88 Mon Sep 17 00:00:00 2001 From: anuraghazra Date: Sun, 12 Jul 2020 21:51:56 +0530 Subject: [PATCH] fix: fixed total stars count stat --- src/fetchStats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fetchStats.js b/src/fetchStats.js index a188ea6..b658f27 100644 --- a/src/fetchStats.js +++ b/src/fetchStats.js @@ -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 = {