Skip to content

Commit d2c4dfd

Browse files
author
Touch Sungkawichai
committed
edit fetcher
1 parent c0ec7fc commit d2c4dfd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/fetchers/stats-fetcher.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ const fetcher = (variables, token) => {
2121
return request(
2222
{
2323
query: `
24-
query userInfo($login: String!) {
24+
query userInfo($login: String!, $starttime: DateTime!) {
2525
user(login: $login) {
2626
name
2727
login
28-
contributionsCollection {
28+
contributionsCollection(from: $starttime) {
2929
totalCommitContributions
3030
restrictedContributionsCount
3131
}
@@ -41,7 +41,6 @@ const fetcher = (variables, token) => {
4141
closedIssues: issues(states: CLOSED) {
4242
totalCount
4343
}
44-
4544
followers {
4645
totalCount
4746
}

vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"functions": {
33
"api/*.js": {
44
"memory": 128,
5-
"maxDuration": 30
5+
"maxDuration": 10
66
}
77
},
88
"redirects": [

0 commit comments

Comments
 (0)