Skip to content

Commit

Permalink
Merge pull request #5 from bibanul/master
Browse files Browse the repository at this point in the history
fixed cursor methods not being passed options
  • Loading branch information
rschmukler committed Aug 27, 2015
2 parents 27ea444 + e1d50fb commit f25d944
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/kongo-collection.js
Expand Up @@ -77,7 +77,7 @@ cursorMethods.forEach(function(method) {
var collection = this._collection;
options = options || {};
return function(done) {
collection[method].call(collection, query)
collection[method].call(collection, query, options)
.limit(options.limit)
.batchSize(options.batchSize)
.skip(options.skip)
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "kongo",
"version": "0.0.6",
"version": "0.0.7",
"description": "Coroutine based mongo driver for Node.js",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit f25d944

Please sign in to comment.