From 8c6da6cc77e3416a43ceeca44865f04487e8ee09 Mon Sep 17 00:00:00 2001 From: Sarah Smulligan <64047083+Smullz622@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:01:34 -0400 Subject: [PATCH] make target default production --- lib/tasks/com_quality_data.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/com_quality_data.rake b/lib/tasks/com_quality_data.rake index edc14a6..d7e7b0f 100644 --- a/lib/tasks/com_quality_data.rake +++ b/lib/tasks/com_quality_data.rake @@ -5,7 +5,7 @@ namespace :com_quality do Rails.application.eager_load! start = Time.now # Takes params hash -> params[:target] must be defined (:beta or :production) - params = { target: :beta } + params = { target: (args[:target].blank? ? :production : args[:target].to_sym) } puts params ComQualityIntegrateJob.perform_now(params, 'log/com_quality_errors.log', false) finish = Time.now