Hi Lejepra! I didn't actually use async / await in my own example code, so I'm basically guessing here.
async / await
I'd try moving the async to before the fs.createReadStream call, and seeing if that forces the await call to let the CSV-parsing finish.
async
fs.createReadStream
await
Let me know if you're still working on this, and what you find out! :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Lejepra! I didn't actually use
async / await
in my own example code, so I'm basically guessing here.I'd try moving the
async
to before thefs.createReadStream
call, and seeing if that forces theawait
call to let the CSV-parsing finish.Let me know if you're still working on this, and what you find out! :)