Skip to content

Commit

Permalink
fix(import-natcen-data): ignore empty rows
Browse files Browse the repository at this point in the history
  • Loading branch information
lukashroch committed Nov 21, 2024
1 parent 484f1ea commit 529da28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/ndns/import-natcen-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default class NDNSStudyData extends HasMsSqlPool implements Task<NDNSStud

return new Promise((resolve, reject) => {
const stream = fs.createReadStream(this.filename)
.pipe(parseCSV({ headers: false }));
.pipe(parseCSV({ headers: false/* , ignoreEmpty: true */ }));
stream
.on('data', (row) => {
this.data.push(row);
Expand Down

0 comments on commit 529da28

Please sign in to comment.