From 3fd51459eb14855b0dc9dcfbd31ada6aa8bb8a0d Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Wed, 16 Aug 2023 13:41:26 +0100 Subject: [PATCH] feat: convert int args to ints --- lib/tasks/full_import.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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?)