Skip to content

Commit

Permalink
Fix pagination of suggestUserToFollow query
Browse files Browse the repository at this point in the history
  • Loading branch information
QuangChanVi committed Nov 28, 2023
1 parent c1d3762 commit 9f3cb1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers/Query/USER.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const manualPagination = (limit = DEFAULT_LIMIT, after, list) => {
}

const breakPoint = list.findIndex((each) => each.id === after);
const result = list.slice(breakPoint, limit + breakPoint);
const result = list.slice(breakPoint + 1, limit + breakPoint + 1);
return result;
};

Expand Down

0 comments on commit 9f3cb1d

Please sign in to comment.