Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Ensure we return the count correctly for the high level query/scan API #18

Merged
merged 1 commit into from
May 2, 2012
Merged

Ensure we return the count correctly for the high level query/scan API #18

merged 1 commit into from
May 2, 2012

Conversation

mhart
Copy link
Contributor

@mhart mhart commented May 2, 2012

Otherwise it will throw an exception because data.Items is undefined

if (data.LastEvaluatedKey) loop(data.LastEvaluatedKey)

else cb(null, response)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, looks like I corrected the whitespace in this function too - let me know if you want to revert this just to see the changes as per Query.js

jed added a commit that referenced this pull request May 2, 2012
Ensure we return the count correctly for the high level query/scan API
@jed jed merged commit 8877824 into jed:master May 2, 2012
@jed
Copy link
Owner

jed commented May 2, 2012

thanks @mhart. pushed to npm as 0.2.10. don't worry too much about the formatting for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants