Skip to content

Instantly share code, notes, and snippets.

@SidneyAllen
Created September 22, 2021 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SidneyAllen/e3b3efaf1aa0de0c1d2cb2d763ddca19 to your computer and use it in GitHub Desktop.
Save SidneyAllen/e3b3efaf1aa0de0c1d2cb2d763ddca19 to your computer and use it in GitHub Desktop.
av-bulk-deliverability-switch
// Depending on the deliverability property, flag the address
switch (response_addr.deliverability) {
case 'deliverable':
e["action"] = "No action";
break;
case 'deliverable_unnecessary_unit':
e["action"] = "Needs to be updated";
break;
case 'deliverable_incorrect_unit':
e["action"] = "Needs to be corrected";
break;
case 'deliverable_missing_unit':
e["action"] = "Needs to be manually reviewed";
break;
case 'undeliverable':
e["action"] = "Remove from the database";
invalid++;
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment