From caee6bc34261574612ff82e267eedcf395e6de10 Mon Sep 17 00:00:00 2001 From: Monique Rio Date: Mon, 24 Jul 2023 09:38:00 -0400 Subject: [PATCH] daily_hathi script works properly --- umich_catalog_indexing/bin/index_latest_hathi_update.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umich_catalog_indexing/bin/index_latest_hathi_update.rb b/umich_catalog_indexing/bin/index_latest_hathi_update.rb index 1c35886a..29839cfb 100755 --- a/umich_catalog_indexing/bin/index_latest_hathi_update.rb +++ b/umich_catalog_indexing/bin/index_latest_hathi_update.rb @@ -9,8 +9,8 @@ hathi_file = Jobs::Utilities::ZephirFile.latest_daily_update -if ENV.fetch("SOLRCLOUD_ON") - logger.info "Sending job to index #{hathi_file} into hatcher production solr: #{ENV.fetch("LIVE_SOLR_URL")}" +if ENV.fetch("SOLRCLOUD_ON") == true + logger.info "Sending job to index #{hathi_file} into live solr: #{ENV.fetch("LIVE_SOLR_URL")}" IndexHathi.perform_async(hathi_file, ENV.fetch("LIVE_SOLR_URL")) else logger.info "Sending job to index #{hathi_file} into hatcher production solr: #{ENV.fetch("HATCHER_PRODUCTION_SOLR_URL")}"