Skip to content

Commit 040a9b9

Browse files
committed
Add default affiliation
1 parent 3855938 commit 040a9b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/fetchers/stats-fetcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const fetcher = (variables, token) => {
1111
return request(
1212
{
1313
query: `
14-
query userInfo($login: String!, $ownerAffiliations: [RepositoryAffiliation]) {
14+
query userInfo($login: String!, $ownerAffiliations: [RepositoryAffiliation] = [OWNER]) {
1515
user(login: $login) {
1616
name
1717
login

src/fetchers/top-languages-fetcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const fetcher = (variables, token) => {
66
return request(
77
{
88
query: `
9-
query userInfo($login: String!, $ownerAffiliations: [RepositoryAffiliation]) {
9+
query userInfo($login: String!, $ownerAffiliations: [RepositoryAffiliation] = [OWNER]) {
1010
user(login: $login) {
1111
# do not fetch forks
1212
repositories(ownerAffiliations: $ownerAffiliations, isFork: false, first: 100) {

0 commit comments

Comments
 (0)