Skip to content

Commit

Permalink
fix: bulk jobs incorrectly set LineEnding to CRLF instead of LF when …
Browse files Browse the repository at this point in the history
…not defined
  • Loading branch information
Codeneos committed Dec 28, 2023
1 parent 074dfe2 commit 3703f65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/salesforce/src/bulk/bulkJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export interface BulkJobInfo {
/**
* The line ending used for CSV job data, marking the end of a data row. The default is `LF`.
*/
lineEnding: JobLineEndingFormat;
lineEnding?: JobLineEndingFormat;
/**
* Date and time in the UTC time zone when the job finished.
*/
Expand Down Expand Up @@ -201,7 +201,7 @@ export class BulkJob<T extends BulkJobInfo> {
}
this._info = Object.freeze<T>({ ...info });
this.delimiterCharacter = ColumnDelimiters[info.columnDelimiter || 'COMMA'];
this.lineEndingCharacters = info.lineEnding === 'LF' ? '\n' : '\r\n';
this.lineEndingCharacters = info.lineEnding === 'CRLF' ? '\r\n' : '\n';
}

/**
Expand Down

0 comments on commit 3703f65

Please sign in to comment.