From 9a365dead21c1d959885347e34efae3be4831139 Mon Sep 17 00:00:00 2001 From: Yannick Schurter Date: Wed, 30 Oct 2019 11:16:36 +0100 Subject: [PATCH] use end event of csv-parse instead of finish --- api/lib/controllers/logs/upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/lib/controllers/logs/upload.js b/api/lib/controllers/logs/upload.js index 671f812e4..da241f616 100644 --- a/api/lib/controllers/logs/upload.js +++ b/api/lib/controllers/logs/upload.js @@ -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; }