diff --git a/middleware/normalizeParentIds.js b/middleware/normalizeParentIds.js index fc762223..5a35e42e 100644 --- a/middleware/normalizeParentIds.js +++ b/middleware/normalizeParentIds.js @@ -43,7 +43,7 @@ function normalizeParentIds(place) { // it's always WOF ids and hardcode to that if (place.source === 'geonames' && place.source_id === placetype_ids[0]) { source = place.source; - } elseif (place.source === 'geonamesmil' && place.source_id === placetype_ids[0]) { + } else if (place.source === 'geonamesmil' && place.source_id === placetype_ids[0]) { source = place.source; }