From 01f3693de865256189a3a87167b0d58b3b02cfe6 Mon Sep 17 00:00:00 2001 From: CS-Tao Date: Thu, 22 Oct 2020 00:29:44 +0800 Subject: [PATCH] Fix graphql content --- src/renderer/api/github.api.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/api/github.api.js b/src/renderer/api/github.api.js index b938fbdb..5fd32fd5 100644 --- a/src/renderer/api/github.api.js +++ b/src/renderer/api/github.api.js @@ -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 @@ -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