Skip to content

Commit

Permalink
fix ReadStream.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed May 18, 2014
1 parent 9543f87 commit fa55c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tiny.js
Expand Up @@ -773,7 +773,7 @@ Tiny.prototype.createReadStream = function(options, stream) {
if (options.values) {
stream.emit('data', data);
} else {
stream.emit('data', data, docKey);
stream.emit('data', { key: docKey, value: data });
}

if (options.end && docKey.indexOf(options.end) === 0) {
Expand Down

0 comments on commit fa55c30

Please sign in to comment.