|
|
@ -80,11 +80,7 @@ export class Exporter { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(columns.length > 0) { |
|
|
|
if(columns.length > 0) { |
|
|
|
console.log('values', values); |
|
|
|
this._writeCsv(stream, { columns, values, }); |
|
|
|
this._writeCsv(stream, { |
|
|
|
|
|
|
|
columns, |
|
|
|
|
|
|
|
values, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
await this._updateProgress({ status: ExportStatus.EXPORTING, progress: (day + 1) / days }); |
|
|
|
await this._updateProgress({ status: ExportStatus.EXPORTING, progress: (day + 1) / days }); |
|
|
|
|
|
|
|
|
|
|
@ -110,7 +106,7 @@ export class Exporter { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
console.log(`${this._getFilename('csv')} export is finished with error`); |
|
|
|
console.log(`${this._getFilename('csv')} export is finished with error`); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return csvStream; |
|
|
|
return csvStream; |
|
|
|
} |
|
|
|
} |
|
|
|