Skip to content

Commit 218b691

Browse files
authored
Merge pull request #200 from junajan/fix-listen-for-finish-event-on-zip-stream
Listen for finish event on zip stream instead of middle stream
2 parents 6670a48 + 5eaa428 commit 218b691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/stream/xlsx/workbook-writer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ WorkbookWriter.prototype = {
317317
self.stream.on('error', function(error){
318318
reject(error);
319319
});
320-
self.stream.on('finish', function(){
320+
self.zip.on('finish', function(){
321321
resolve(self);
322322
});
323323
self.zip.on('error', function(error){

0 commit comments

Comments
 (0)