mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 03:46:23 +00:00
typo + rubocop
This commit is contained in:
parent
863fd684b4
commit
c71bec2182
1 changed files with 7 additions and 9 deletions
|
@ -22,15 +22,13 @@ class MaintenanceJob < ApplicationJob
|
|||
|
||||
# XXX: Parece que [0] es más rápido que []#first
|
||||
Usuarie.all.pluck(:email, :lang).each do |u|
|
||||
begin
|
||||
MaintenanceMailer.with(maintenance: maintenance,
|
||||
email: u[0],
|
||||
lang: u[1]).public_send(mailer).deliver_now
|
||||
rescue Net::SMTPServerBusy => e
|
||||
# Algunas direcciones no son válidas, no queremos detener el
|
||||
# envío pero sí enterarnos cuáles son
|
||||
ExceptionNotifier.notify_exception(e, data: { maintenance_id: maintenance_id, email: u[0]) })
|
||||
end
|
||||
ExceptionNotifier.notify_exception(e, data: { maintenance_id: maintenance_id, email: u[0] })
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue