Browse Source

Fix references to address zip

pull/369/head
Julian Simioni 9 years ago
parent
commit
bb3fede3c0
  1. 4
      middleware/confidenceScore.js

4
middleware/confidenceScore.js

@ -100,7 +100,7 @@ function checkForDealBreakers(req, hit) {
return true; return true;
} }
if (check.assigned(req.clean.parsed_text.postalcode) && req.clean.parsed_text.postalcode !== hit.zip) { if (check.assigned(req.clean.parsed_text.postalcode) && req.clean.parsed_text.postalcode !== hit.address.zip) {
logger.debug('[confidence][deal-breaker]: postalcode !== zip'); logger.debug('[confidence][deal-breaker]: postalcode !== zip');
return true; return true;
} }
@ -208,7 +208,7 @@ function propMatch(textProp, hitProp, expectEnriched) {
* @param {object} [hit.address] * @param {object} [hit.address]
* @param {string|number} [hit.address.number] * @param {string|number} [hit.address.number]
* @param {string} [hit.address.street] * @param {string} [hit.address.street]
* @param {string|number} [hit.zip] * @param {string|number} [hit.address.zip]
* @param {string} [hit.admin1_abbr] * @param {string} [hit.admin1_abbr]
* @param {string} [hit.alpha3] * @param {string} [hit.alpha3]
* @returns {number} * @returns {number}

Loading…
Cancel
Save