Skip to content

Conversation

@Natsuke
Copy link

@Natsuke Natsuke commented Dec 20, 2016

Hi there,

Just fall into some issues using this module on a team project.

Basicaly, if we change the name of the _isDeleted property, it is not replicated in the queryNonDeleted where param.

Also, in some case we can send query with empty where object, and this was merged with the queryNonDeleted param which cause SQL issue.

Feel free to discuss if you want something to be changed ! 👍

@Natsuke Natsuke changed the title Fix wrong fields and invalid where params WIP: Fix wrong fields and invalid where params Dec 20, 2016
Wrong fields:
	- In `queryNonDeleted`: replace _isDeleted by [_isDeleted]
Query params:
	- Only check if query.where is defined but not if it’s filled
@Natsuke Natsuke force-pushed the fix/invalid-fields-and-query-params branch from f077745 to 0fb75f3 Compare December 21, 2016 09:04
@Natsuke Natsuke changed the title WIP: Fix wrong fields and invalid where params Fix wrong fields and invalid where params Dec 21, 2016
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