Skip to content

Commit

Permalink
Return destination in GridStore pipe function.
Browse files Browse the repository at this point in the history
  • Loading branch information
christkv committed Nov 16, 2015
1 parent 4e17bdb commit f565832
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Full MongoDB 3.2 support.
* NODE-601 Added maxAwaitTimeMS support for 3.2 getMore to allow for custom timeouts on tailable cursors.
* Updated mongodb-core to 1.2.22.
* Return destination in GridStore pipe function.

2.0.48 11-07-2015
-----------------
Expand Down
2 changes: 2 additions & 0 deletions lib/gridfs/grid_store.js
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,8 @@ GridStoreStream.prototype.pipe = function(destination) {
self.totalBytesToRead = self.gs.length - self.gs.position;
self._pipe.apply(self, [destination]);
}

return destination;
}

// Called by stream
Expand Down

0 comments on commit f565832

Please sign in to comment.