Skip to content

Commit effdca8

Browse files
change cursor.nextObject to cursor.next
Fixing this issue aheckmann#125
1 parent c394e05 commit effdca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Grid.prototype.findOne = function (options, callback) {
140140
collection.find(find, function(err, cursor) {
141141
if (err) { return callback(err); }
142142
if (!cursor) { return callback(new Error('Collection not found')); }
143-
cursor.nextObject(callback);
143+
cursor.next(callback);
144144
});
145145
}
146146

0 commit comments

Comments
 (0)