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: clear select before querying counts #43

Merged
merged 1 commit into from
Sep 7, 2020

Conversation

sammarks
Copy link
Contributor

@sammarks sammarks commented Sep 7, 2020

I noticed whenever passing a custom .select() to the query builder passed to this helper, whenever generating the count the original select is not cleared.

Usually, this results in the database coming back with an error message.

All I've done here is just modified the query to clear the select before performing the count.

I've tested this in my local environment and can verify it is working as expected.

@sammarks sammarks marked this pull request as ready for review September 7, 2020 13:55
Copy link
Contributor

@dmerrill6 dmerrill6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Thanks again for your contribution!

Releasing this today.

@dmerrill6 dmerrill6 merged commit e2865c2 into FleekHQ:master Sep 7, 2020
@sammarks
Copy link
Contributor Author

sammarks commented Sep 7, 2020

Thanks for the quick merge and release!

@sammarks sammarks deleted the count-clear-select branch September 7, 2020 15:22
@dmerrill6
Copy link
Contributor

Released as version 0.8.0 🙏

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.

2 participants