From 2e2d7d7cdf083db3c94f17dc5f9c3c71a9e9ea30 Mon Sep 17 00:00:00 2001 From: Michael Olund Date: Tue, 10 Oct 2023 13:16:29 -0700 Subject: [PATCH] NOBUG: Elasticmanager geoshape changes (#1042) --- src/elasticmanager/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/elasticmanager/index.js b/src/elasticmanager/index.js index ce0a57379..44a0427f5 100644 --- a/src/elasticmanager/index.js +++ b/src/elasticmanager/index.js @@ -21,7 +21,6 @@ const { populateGeoShapes } = require('./scripts/populateGeoShapes'); * (manually triggered via OpenShift terminal) */ if (scriptKeySpecified("reindex")) { - await populateGeoShapes(); if (!await parkIndexExists()) { logger.warn("The Elasticsearch index is missing. It will be recreated."); await createParkIndex(); @@ -37,7 +36,6 @@ const { populateGeoShapes } = require('./scripts/populateGeoShapes'); * (manually triggered via OpenShift terminal) */ if (scriptKeySpecified("rebuild")) { - await populateGeoShapes(); logger.info("Recreating the park search index and reindexing all protectedAreas") await deleteParkIndex(); await createParkIndex(); @@ -73,7 +71,6 @@ const { populateGeoShapes } = require('./scripts/populateGeoShapes'); logger.warn("The Elasticsearch index is missing. It will be recreated."); await createParkIndex(); } - await populateGeoShapes(); logger.info("Reindexing protectedAreas based on queued-tasks"); // process the queue in the opposite order to the cron job to minimize duplication await indexParks({ descending: true });