From 04f18049a98a5c8ec3e1c463297c9ad0b5c8ac57 Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 31 Oct 2018 18:18:05 +0000 Subject: [PATCH] Fix followers order --- routes/github/follower.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/github/follower.js b/routes/github/follower.js index 7e46252b3..057db77b3 100644 --- a/routes/github/follower.js +++ b/routes/github/follower.js @@ -17,7 +17,7 @@ module.exports = async (ctx) => { query: ` { user(login: "${user}") { - followers(last: 10) { + followers(first: 10) { edges { node { login @@ -31,7 +31,7 @@ module.exports = async (ctx) => { }, }); - const data = response.data.data.user.followers.edges.reverse(); + const data = response.data.data.user.followers.edges; ctx.state.data = { title: `${user}'s followers`,