IO-3423 Insd backfill

This commit is contained in:
Allan Carr
2025-10-30 13:26:33 -07:00
parent ff809d26d0
commit 6e495caf16

View File

@@ -393,7 +393,7 @@ export function ReplaceOwnerInfoWithClaimant<
const ownerMissing = identityKeys.every((k) => const ownerMissing = identityKeys.every((k) =>
_.isEmpty((jobObject as any)[`ownr_${k}`]), _.isEmpty((jobObject as any)[`ownr_${k}`]),
); );
const claimantHasAll = identityKeys.every( const claimantHasSome = identityKeys.some(
(k) => !_.isEmpty((jobObject as any)[`clmt_${k}`]), (k) => !_.isEmpty((jobObject as any)[`clmt_${k}`]),
); );
const claimantMissing = identityKeys.every((k) => const claimantMissing = identityKeys.every((k) =>
@@ -416,7 +416,7 @@ export function ReplaceOwnerInfoWithClaimant<
}); });
}; };
if (ownerMissing && claimantHasAll) { if (ownerMissing && claimantHasSome) {
promote("clmt"); promote("clmt");
} else if (ownerMissing && claimantMissing) { } else if (ownerMissing && claimantMissing) {
promote("insd"); promote("insd");