Skip to content

Commit

Permalink
Merge pull request anuraghazra#204 from SSARCandy/master
Browse files Browse the repository at this point in the history
fix: fetch top lang in each repository
  • Loading branch information
anuraghazra authored Jul 26, 2020
2 parents b8330a8 + d929e8b commit 68198d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fetchTopLanguages.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const fetcher = (variables, token) => {
query: `
query userInfo($login: String!) {
user(login: $login) {
repositories(isFork: false, first: 100) {
repositories(isFork: false, first: 100, orderBy: {field: UPDATED_AT, direction: DESC}) {
nodes {
languages(first: 1) {
languages(first: 1, orderBy: {field: SIZE, direction: DESC}) {
edges {
size
node {
Expand Down

0 comments on commit 68198d8

Please sign in to comment.