Skip to content

Commit

Permalink
Fix missing external id for load with multiple upserts
Browse files Browse the repository at this point in the history
externalIdValue was being cleared out on some code paths since the external id was not being passed along

resolves #678
  • Loading branch information
paustint committed Dec 18, 2023
1 parent 0395b77 commit 909462c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,12 @@ export function getDataGraph(
(
{
transformedRecord,
externalIdValue,
recordIdForUpdate,
dependencies,
}: { transformedRecord: MapOf<any>; externalIdValue: string | null; recordIdForUpdate: string | null; dependencies: string[] },
header
) => {
let externalIdValue: string | null = null;
const field = dataset.fieldsByName[header.toLowerCase()];
let value = record[header];
const valueIsNull = isNil(value) || (isString(value) && !value);
Expand Down

0 comments on commit 909462c

Please sign in to comment.