From 6e495caf1617a09160ecbc1d4551d0174761d0b6 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Thu, 30 Oct 2025 13:26:33 -0700 Subject: [PATCH] IO-3423 Insd backfill --- src/main/decoder/decoder.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/decoder/decoder.ts b/src/main/decoder/decoder.ts index 558993e..6973c1a 100644 --- a/src/main/decoder/decoder.ts +++ b/src/main/decoder/decoder.ts @@ -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");