Skip to content

Commit

Permalink
use end event of csv-parse instead of finish
Browse files Browse the repository at this point in the history
  • Loading branch information
nojhamster committed Oct 30, 2019
1 parent 3c0dee8 commit 9a365de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/lib/controllers/logs/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function readStream(stream, index, username, splittedFields) {

parser.on('readable', read);
parser.on('error', err => { reject(err); });
parser.on('finish', () => {
parser.on('end', () => {
doneReading = true;
if (busy) { return; }

Expand Down

0 comments on commit 9a365de

Please sign in to comment.