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 LearnBoost/mongoose#2313: don't let user accidentally clobber geoNear params #1223

Closed
wants to merge 1 commit into from
Closed

Conversation

vkarpov15
Copy link
Contributor

Hi Christian,

A mongoose user ran into a fairly interesting issue - looks like you can clobber geoNear params by passing bad options to the geoNear() function. Obviously, specifying a geoNear option when calling geoNear() isn't necessary or useful, but would be nice to foolproof this a bit more. One user's been having some trouble with this, and you can easily imagine a case where somebody might want to do if (options.geoNear) { collection.geoNear(x, y, options) }

@christkv
Copy link
Contributor

I will look at it tomorrow have to finish the refactoring first but nearly done

@christkv
Copy link
Contributor

needs to be against master branch

@christkv
Copy link
Contributor

manually merged for 2.0

@vkarpov15
Copy link
Contributor Author

Thanks Christian

@christkv
Copy link
Contributor

merged manually into master (1.4)

@christkv christkv closed this Nov 14, 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.

2 participants