Skip to content

Commit

Permalink
fix: resolve record comparison issue in updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hknokh2 committed Nov 23, 2024
1 parent a1d9e37 commit 1871fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/models/job_models/migrationJobTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,7 @@ export default class MigrationJobTask {
return Object.keys(cloned)
.filter(key => fieldsToCompareRecords.length == 0 || fieldsToCompareRecords.indexOf(key) >= 0)
.some(key => {
if (key != "Id" && key != CONSTANTS.__ID_FIELD_NAME) {
if (key != "Id" && key != CONSTANTS.__ID_FIELD_NAME && key != CONSTANTS.__SOURCE_ID_FIELD_NAME) {
// FIXME: && target.hasOwnProperty(key) solves issue
// Auto-number fields ignored when used as sourceField in fieldMapping #89
// But it causes error when copying self-referencing fields with field mapping with complex extgernal id
Expand Down

0 comments on commit 1871fc4

Please sign in to comment.