Skip to content

Commit

Permalink
chore(dedupe): improve logging when deduping
Browse files Browse the repository at this point in the history
  • Loading branch information
orangejulius committed Feb 5, 2021
1 parent 293e116 commit b65a6a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion middleware/dedupe.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const field = require('../helper/fieldValue');
// convenience function to pretty print hits
const formatLog = (hit) => {
const name = field.getStringValue(_.get(hit, 'name.default'));
return `${name} ${hit.source}:${hit._id}`;
const zip = field.getStringValue(_.get(hit, 'address_parts.zip'));
return [name, zip, hit.id].join(' ');
};

/**
Expand Down

0 comments on commit b65a6a0

Please sign in to comment.