skip bad claim when processing to ensure all future claims make it into elastic search.
This commit is contained in:
parent
11d000119b
commit
db39a6c47f
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ export async function claimSync () {
|
||||||
if (claim.value === null) {
|
if (claim.value === null) {
|
||||||
console.log(claim);
|
console.log(claim);
|
||||||
await logErrorToSlack('Failed to process claim ' + claim.claimId + ' due to missing value');
|
await logErrorToSlack('Failed to process claim ' + claim.claimId + ' due to missing value');
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
claim.value = JSON.parse(claim.value).Claim;
|
claim.value = JSON.parse(claim.value).Claim;
|
||||||
if (claim.name && claim.value) {
|
if (claim.name && claim.value) {
|
||||||
|
|
Loading…
Reference in a new issue