Skip to content
This repository has been archived by the owner on Apr 23, 2022. It is now read-only.

Commit

Permalink
feat: 將一次撈取的 request 縮小到 50 個
Browse files Browse the repository at this point in the history
為 GraphQL query 加上 label
  • Loading branch information
henry40408 committed May 15, 2018
1 parent 6b59e43 commit 24f89e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/scripts/background/githubService.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class GithubService {
}

static cuesToGraphQLQuery (cues) {
return `query {
return `query Repositories {
${cues.map(GithubService.cueToGraphQLQuery).join('\n')}
}`
}
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/contentscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { log, logError } from './common'
import UpdateNotification from './components/UpdateNotification'
import StarHOC from './components/StarHOC'

const CHUNK_SIZE = 100
const CHUNK_SIZE = 50
const GITHUB_ISSUES_URL_PATTERN = /https:\/\/github\.com\/(.+?)\/issues\/(\d+)/
const GITHUB_ISSUES_LINKS_LIMIT = 1000

Expand Down

0 comments on commit 24f89e8

Please sign in to comment.