diff --git a/src/services/exporter.ts b/src/services/exporter.ts index ff5c4bb..0275676 100644 --- a/src/services/exporter.ts +++ b/src/services/exporter.ts @@ -109,7 +109,7 @@ export class Exporter { } private _initCsvStream() { - const csvStream = csv.createWriteStream({ headers: true }) + const csvStream = csv.createWriteStream({ headers: true, delimiter: this._task.csvDelimiter }) .on('error', async e => await this._updateProgress({ status: ExportStatus.ERROR, errorMessage: e.message })); const writableStream = fs.createWriteStream(this._getFilePath('csv')); diff --git a/src/types.ts b/src/types.ts index 654b128..90703d5 100644 --- a/src/types.ts +++ b/src/types.ts @@ -102,6 +102,7 @@ export type ExportTask = { from: number; to: number; }; + csvDelimiter: string; progress?: ExportProgress; id?: string; };