Skip to content

Commit

Permalink
This commit includes:
Browse files Browse the repository at this point in the history
-when using mongodb driver with  streaming response the proccess doesn't finish.
  • Loading branch information
Luis Arturo Renteria Tostado committed Dec 21, 2016
1 parent 1d4bdab commit b6a470d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ function CSVTransform(dbStream, options) {
}

self._dbStream = dbStream;

self._dbStream.on('end', function() {
self.push(null);
});
self._dbStream.on('close', function() {
self.push(null);
});
Expand Down Expand Up @@ -277,4 +279,3 @@ function defaultFormat(formatArgs) {

formatArgs.formattedValue = formattedValue;
}

0 comments on commit b6a470d

Please sign in to comment.