diff --git a/lib/tasks/full_import.rake b/lib/tasks/full_import.rake index 55ec1558e..c9d95d2a8 100644 --- a/lib/tasks/full_import.rake +++ b/lib/tasks/full_import.rake @@ -89,8 +89,8 @@ namespace :import do desc "Batch import logs" task :batch_import_logs, %i[institutions_csv_name orgs_per_batch batch_number] => :environment do |_task, args| institutions_csv_name = args[:institutions_csv_name] - orgs_per_batch = args[:orgs_per_batch] - batch_number = args[:batch_number] + orgs_per_batch = args[:orgs_per_batch].to_i + batch_number = args[:batch_number].to_i raise "Usage: rake import:batch_import_logs['institutions_csv_name', orgs_per_batch, batch_number]" if [institutions_csv_name, orgs_per_batch, batch_number].any?(&:blank?)