Skip to content

Commit

Permalink
change cursor.nextObject to cursor.next
Browse files Browse the repository at this point in the history
Fixing this issue aheckmann#125
  • Loading branch information
MelroyNoronha authored Jan 24, 2019
1 parent c394e05 commit effdca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Grid.prototype.findOne = function (options, callback) {
collection.find(find, function(err, cursor) {
if (err) { return callback(err); }
if (!cursor) { return callback(new Error('Collection not found')); }
cursor.nextObject(callback);
cursor.next(callback);
});
}

Expand Down

0 comments on commit effdca8

Please sign in to comment.