Skip to content

Commit

Permalink
Merge pull request #9 from CS-Tao/develop
Browse files Browse the repository at this point in the history
Fix graphql content
  • Loading branch information
CS-Tao authored Oct 21, 2020
2 parents ee3dc5a + 01f3693 commit d5ffa64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/renderer/api/github.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export default {
if (!cursor) {
query = `query {
viewer { id login }
repository(owner:"CS-Tao", name:"${repoName}", orderBy: {field: STARRED_AT, direction: DESC}) {
repository(owner:"CS-Tao", name:"${repoName}") {
id
stargazers (first: ${firstUserCount}) {
stargazers (first: ${firstUserCount}, orderBy: {field: STARRED_AT, direction: DESC}) {
edges {
cursor
starredAt
Expand All @@ -44,9 +44,9 @@ export default {
} else {
query = `query {
viewer { id login }
repository(owner:"CS-Tao", name:"${repoName}", orderBy: {field: STARRED_AT, direction: DESC}) {
repository(owner:"CS-Tao", name:"${repoName}") {
id
stargazers (first: ${maxUserCount}, after: "${cursor}") {
stargazers (first: ${maxUserCount}, orderBy: {field: STARRED_AT, direction: DESC}, after: "${cursor}") {
edges {
cursor
starredAt
Expand Down

0 comments on commit d5ffa64

Please sign in to comment.