From 20dbe8dc6118992892baafbc44617dbb61aa6b42 Mon Sep 17 00:00:00 2001 From: stdavis Date: Thu, 8 Aug 2024 09:39:59 -0600 Subject: [PATCH] fix: lowercase field names of data returned from ugrc search endpoint --- .vscode/settings.json | 2 ++ src/config.js | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 7d176b1..4ba6d18 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "cSpell.words": [ + "countyid", "COUNTYNBR", "firebaserc", "FULLNAME", @@ -8,6 +9,7 @@ "QMMTB", "SANPETE", "setversion", + "vistaid", "WEBAPI" ], "editor.formatOnSave": true, diff --git a/src/config.js b/src/config.js index a895d09..654a058 100644 --- a/src/config.js +++ b/src/config.js @@ -34,11 +34,11 @@ const config = { }, fieldNames: { ZIP5: 'ZIP5', - VistaID: 'VistaID', - CountyID: 'CountyID', - COUNTYNBR: 'COUNTYNBR', - DIST: 'DIST', - DISTRICT: 'DISTRICT', + VistaID: 'vistaid', + CountyID: 'countyid', + COUNTYNBR: 'countynbr', + DIST: 'dist', + DISTRICT: 'district', Address: 'Address', ResidenceID: 'ResidenceID', AddNum: 'AddNum', // address points