Created
September 22, 2021 14:09
-
-
Save SidneyAllen/e3b3efaf1aa0de0c1d2cb2d763ddca19 to your computer and use it in GitHub Desktop.
av-bulk-deliverability-switch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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