Skip to content

Commit

Permalink
Convert total to integer for count() (#109) (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
runningskull authored and daffl committed Jul 24, 2017
1 parent 8520c9b commit 1d8b703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class Service {
if (filters.$limit === 0) {
executeQuery = total => {
return Promise.resolve({
total,
total: parseInt(total, 10),
limit: filters.$limit,
skip: filters.$skip || 0,
data: []
Expand Down

0 comments on commit 1d8b703

Please sign in to comment.