-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Adds limit = 0 as a valid parameter for queries #1493
Conversation
Current coverage is
|
@@ -9,12 +9,13 @@ | |||
}, | |||
"files": [ | |||
"bin/", | |||
"lib/", | |||
"src/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about that. I was expecting to merge it on our fork first. My mistake. This change was not supposed to be here.
@seijiakiyama updated the pull request. |
Sweet, this should fix some issues we've been seeing in the dashboard as well. Can you rebase and resolve conflicts? Then we can merge. |
if (this.className == '_User') { | ||
for (var result of results) { | ||
delete result.password; | ||
if (this.findOptions.limit !== 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Id's suggest to improve readability:
if (this.findOptions.limit === 0) {
this.response = {results: []};
return Promise.resolve();
}
// original code
@seijiakiyama updated the pull request. |
No description provided.