Foxed codeclimate issue

This commit is contained in:
Sergei Tsoganov 2023-12-19 11:09:17 +02:00
parent 7db8b5d970
commit e68039902d

View file

@ -157,7 +157,7 @@ module Repp
SQL SQL
ActiveRecord::Base.connection.execute( 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| ).each_with_object({}) do |row, hash|
hash[row['registrar_id']] = row['total_domain_count'].to_i hash[row['registrar_id']] = row['total_domain_count'].to_i
end end