Skip to content

Commit

Permalink
Fixed FleekHQ#20
Browse files Browse the repository at this point in the history
  • Loading branch information
steerio committed Dec 24, 2019
1 parent a0dc83f commit b3dd18b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/orm-connectors/knex/custom-pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const removeNodesFromBeginning = (nodesAccessor, last, { orderColumn, ascOrDesc


const getNodesLength = async (nodesAccessor) => {
const counts = await nodesAccessor.clone().count('*');
const counts = await nodesAccessor.clone().clearSelect().count('*');
const result = counts.reduce((prev, curr) => {
const currCount = curr.count || curr['count(*)'];
if (!currCount) return prev;
Expand Down

0 comments on commit b3dd18b

Please sign in to comment.