From e68039902dd61e36d577776da6fb6565c863fe08 Mon Sep 17 00:00:00 2001 From: Sergei Tsoganov Date: Tue, 19 Dec 2023 11:09:17 +0200 Subject: [PATCH] Foxed codeclimate issue --- app/controllers/repp/v1/stats_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repp/v1/stats_controller.rb b/app/controllers/repp/v1/stats_controller.rb index 71e8aafb9..100ea7ab7 100644 --- a/app/controllers/repp/v1/stats_controller.rb +++ b/app/controllers/repp/v1/stats_controller.rb @@ -157,7 +157,7 @@ module Repp SQL ActiveRecord::Base.connection.execute( - ActiveRecord::Base.send(:sanitize_sql_array, [sql, date_to: date_to]) + ActiveRecord::Base.send(:sanitize_sql_array, [sql, { date_to: date_to }]) ).each_with_object({}) do |row, hash| hash[row['registrar_id']] = row['total_domain_count'].to_i end