Skip to content

Commit

Permalink
fix: IngestJobInfo.getFailedRecords returns wrong type
Browse files Browse the repository at this point in the history
  • Loading branch information
Codeneos committed Dec 14, 2023
1 parent 3bf8942 commit 2a27930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/salesforce/src/bulk/bulkIngestJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class BulkIngestJob<TRecord extends object = any> extends BulkJob<IngestJ
* Retrieves a list of failed records for a completed insert, delete, update, or upsert job.
*/
public async getFailedRecords() {
return [...this.resultsToRecords<SuccessfulRecord & TRecord>(await this.client.get(`${this.id}/failedResults`))];
return [...this.resultsToRecords<FailedRecord & TRecord>(await this.client.get(`${this.id}/failedResults`))];
}

/**
Expand Down

0 comments on commit 2a27930

Please sign in to comment.