Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: the count method did not account for whereRaw and whereBetween #736

Open
wants to merge 1 commit into
base: stable
Choose a base branch
from

Conversation

nickschot
Copy link
Contributor

The count method in the query class did not account for whereRaw and whereBetween queries setting incorrect pagination numbers (total) in the JSONAPI response. This broke, for example, using a scope with a whereRaw on a super.index(req, res) call by using the total amount of records for setting pagination metrics.

… queries setting incorrect pagination numbers (total) in the JSONAPI response
@codecov
Copy link

codecov bot commented Aug 27, 2018

Codecov Report

Merging #736 into stable will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           stable     #736   +/-   ##
=======================================
  Coverage   92.41%   92.41%           
=======================================
  Files         181      181           
  Lines        2018     2018           
=======================================
  Hits         1865     1865           
  Misses        153      153
Impacted Files Coverage Δ
src/packages/database/query/index.js 94.59% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 812555a...04fdf63. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant