Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d929e8b

Browse files
committed
fix: fetch top lang in ech repository
1 parent 3bdcf3d commit d929e8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fetchTopLanguages.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ const fetcher = (variables, token) => {
88
query: `
99
query userInfo($login: String!) {
1010
user(login: $login) {
11-
repositories(isFork: false, first: 100) {
11+
repositories(isFork: false, first: 100, orderBy: {field: UPDATED_AT, direction: DESC}) {
1212
nodes {
13-
languages(first: 1) {
13+
languages(first: 1, orderBy: {field: SIZE, direction: DESC}) {
1414
edges {
1515
size
1616
node {

0 commit comments

Comments
 (0)