Skip to content

Commit

Permalink
add new customAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
hermosillajelmy committed Nov 4, 2024
1 parent bc91d96 commit 4a56c36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/customAttributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ module.exports = function(app) {
retObj.stateElectionId = ["Nation", "State", "County"].includes(hierarchy) ? id : stateElection.join(",");
retObj.electionCut = hierarchy === "Nation" ? `State` : hierarchy === "County" ? `County&State+County=${retObj.stateDataID}` : `County&State+County=${retObj.stateElectionId}`;
retObj.hierarchySub = hierarchy === "Nation" ? "State" : "County";
retObj.CBPSection = hierarchy === "County" || (hierarchy === "State" && id !== "04000US72") || hierarchy === "MSA"

if (hierarchy !== "Nation") {
const url = `${CANON_GEOSERVICE_API}neighbors/${state ? state.id : id}`;
Expand Down

0 comments on commit 4a56c36

Please sign in to comment.