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

Fixed missing where clause #92

Merged
merged 3 commits into from
Mar 14, 2017
Merged

Conversation

eikaramba
Copy link
Contributor

please update immediately, as this breaks current feathers-sequelize if eager-loading is used (luckily quite a new feature anyway). Sry for that :/

please update immediately, as this breaks current feathers-sequelize if eager-loading is used (luckily quite a new feature anyway). Sry for that :/
src/index.js Outdated
@@ -66,10 +66,12 @@ class Service {
let promise;

if (params.sequelize && params.sequelize.include) { // If eager-loading is used, we need to use the find method
params.query = params.query || {};
Copy link
Member

Choose a reason for hiding this comment

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

We don't want to mutate the object we get passed as the query.

@daffl
Copy link
Member

daffl commented Mar 12, 2017

Can we add some tests for this feature to make sure everything works as expected?

@eikaramba
Copy link
Contributor Author

Unforunately i'm not so confident in writing tests and in this case it would be impossible right? Because you need a database to test against ....... However, one could maybe add a local .sqlite file as a database and test against that.

@daffl daffl merged commit 5754cd2 into feathersjs-ecosystem:master Mar 14, 2017
@daffl
Copy link
Member

daffl commented Mar 14, 2017

That is what the existing tests are already doing, would be nice to look into it at one point. Fix released as v1.4.2.

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