From f197afe6cd183743eb6fd7ae77e48dc733f38b58 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Wed, 16 Aug 2023 13:24:18 +0100 Subject: [PATCH] feat: update batch import task --- lib/tasks/full_import.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/full_import.rake b/lib/tasks/full_import.rake index b72ea2cc9..ba5d1700d 100644 --- a/lib/tasks/full_import.rake +++ b/lib/tasks/full_import.rake @@ -92,7 +92,7 @@ namespace :import do orgs_per_batch = args[:orgs_per_batch] batch_number = args[:batch_number] - raise "Usage: rake import:batch_import_logs['institutions_csv_name', 'orgs_per_batch', 'batch_number']" if [institutions_csv_name, app_name, orgs_per_batch, batch_number].any?(&:blank?) + raise "Usage: rake import:batch_import_logs['institutions_csv_name', orgs_per_batch, batch_number]" if [institutions_csv_name, app_name, orgs_per_batch, batch_number].any?(&:blank?) s3_service = Storage::S3Service.new(PlatformHelper.is_paas? ? Configuration::PaasConfigurationService.new : Configuration::EnvConfigurationService.new, ENV["IMPORT_PAAS_INSTANCE"]) whole_csv = CSV.parse(s3_service.get_file_io(institutions_csv_name), headers: true)