Open bickelj opened 1 year ago
Using https://csv.js.org/parse/api/async_iterator/ appears to resolve this, see #40.
Resolved with the merge of #40 (sync API, not async iterator).
Oh wait, that resolution only applied to the post proposals script, not the rest.
In generateApplicationFormJson.ts and a similar future script for proposals, when using the csv-reader library, there appears to be a race between
.on('data',...
row event andon('end'...
end of file event such that if row processing takes some time, the end of input file event can occur before all rows are processed and the overall processing ends prematurely.