skip bad claim when processing to ensure all future claims make it into elastic search.

This commit is contained in:
Mark Beamer Jr 2019-06-22 16:37:39 -04:00
parent 11d000119b
commit db39a6c47f
No known key found for this signature in database
GPG key ID: 1C314FB89AD76973

View file

@ -55,6 +55,7 @@ export async function claimSync () {
if (claim.value === null) {
console.log(claim);
await logErrorToSlack('Failed to process claim ' + claim.claimId + ' due to missing value');
continue;
}
claim.value = JSON.parse(claim.value).Claim;
if (claim.name && claim.value) {