Skip to content

Commit

Permalink
fix: handle map server hub services
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Mar 25, 2024
1 parent cdbb25e commit 61bd9aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scripts/validate-sgid-index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ async function itemId(row) {
hubName: hubData.data.attributes.name,
hubOrganization: hubData.data.attributes.slug.split('::')[0],
serverHost: serviceParts[0],
serverServiceName: serviceParts[1].split(/\/(FeatureServer|MapServer)\//)[0],
serverLayerId: layerId,
};

Expand All @@ -176,7 +177,7 @@ async function itemId(row) {

async function duplicates(row) {
for (const field in duplicateLookups) {
const value = row.get(field)?.trim();
const value = row.get(field);
if (!value) {
continue;
}
Expand Down Expand Up @@ -228,7 +229,7 @@ function buildDuplicateLookups(rows) {

for (const field in duplicateLookups) {
for (const row of rows) {
const value = row.get(field)?.trim();
const value = row.get(field);
if (!value) {
continue;
}
Expand Down

0 comments on commit 61bd9aa

Please sign in to comment.