Fix more rubocop offenses

pull/16368/head
Moisés Calzado 3 years ago
parent 6ea333539a
commit 7138f5588e

@ -11,7 +11,7 @@ class ReporterMailer < ActionMailer::Base
def named_maps_near_the_limit(message) def named_maps_near_the_limit(message)
mail_to = Cartodb.get_config(:mailer, 'support_email') mail_to = Cartodb.get_config(:mailer, 'support_email')
mail to: mail_to, subject: message if mail_to mail to: mail_to, subject: message if mail_to
end end
end end

@ -50,8 +50,8 @@ module Carto
# Send message to support and clean some named_maps # Send message to support and clean some named_maps
ReporterMailer.named_maps_near_the_limit(response_body[:limit_message]).deliver_now ReporterMailer.named_maps_near_the_limit(response_body[:limit_message]).deliver_now
tables = Carto::UserTable.where(user_id: user.id, privacy: 0) tables = Carto::UserTable.where(user_id: user.id, privacy: 0)
.limit(MAX_NAMED_MAPS_TO_CLEAN) .limit(MAX_NAMED_MAPS_TO_CLEAN)
.order('updated_at') .order('updated_at')
named_maps_ids = tables.map { |t| "tpl_#{t.visualization.id.tr('-', '_')}" } named_maps_ids = tables.map { |t| "tpl_#{t.visualization.id.tr('-', '_')}" }
urls = named_maps_ids.map { |id| url(template_name: id) } urls = named_maps_ids.map { |id| url(template_name: id) }
::Resque.enqueue( ::Resque.enqueue(

Loading…
Cancel
Save