Skip to content

Commit

Permalink
Foxed codeclimate issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Tsoganov authored and Sergei Tsoganov committed Dec 19, 2023
1 parent 7db8b5d commit e680399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/repp/v1/stats_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def domains_by_registrar(date_to)
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
Expand Down

0 comments on commit e680399

Please sign in to comment.