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 bug on like expression using MongoDB #403

Merged
merged 2 commits into from Dec 10, 2013

Conversation

Elexy
Copy link

@Elexy Elexy commented Dec 9, 2013

model.find { fb_id: orm.like(websiteId + '%') }, (err, websites) ->

wouldn't work because the passed expression only contains .exp and no val.
After removing .val it all started working again.

Added a commit to correct objects that do have a '.val'

dresende added a commit that referenced this pull request Dec 10, 2013
fixed bug on like expression using MongoDB
@dresende dresende merged commit 202a723 into dresende:master Dec 10, 2013
@vendethiel
Copy link

Is there a test for this? :)

@Elexy
Copy link
Author

Elexy commented Dec 10, 2013

@Nami-Doc good point, i will add one tmo.

@Elexy Elexy deleted the mongo_expr_bug branch December 10, 2013 23:42
@dxg dxg added this to the v2.1.4 milestone Feb 24, 2014
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.

None yet

4 participants