IO-3423 Insd backfill
This commit is contained in:
@@ -393,7 +393,7 @@ export function ReplaceOwnerInfoWithClaimant<
|
||||
const ownerMissing = identityKeys.every((k) =>
|
||||
_.isEmpty((jobObject as any)[`ownr_${k}`]),
|
||||
);
|
||||
const claimantHasAll = identityKeys.every(
|
||||
const claimantHasSome = identityKeys.some(
|
||||
(k) => !_.isEmpty((jobObject as any)[`clmt_${k}`]),
|
||||
);
|
||||
const claimantMissing = identityKeys.every((k) =>
|
||||
@@ -416,7 +416,7 @@ export function ReplaceOwnerInfoWithClaimant<
|
||||
});
|
||||
};
|
||||
|
||||
if (ownerMissing && claimantHasAll) {
|
||||
if (ownerMissing && claimantHasSome) {
|
||||
promote("clmt");
|
||||
} else if (ownerMissing && claimantMissing) {
|
||||
promote("insd");
|
||||
|
||||
Reference in New Issue
Block a user