Skip to content

Commit

Permalink
Fix syntax and add check empty email
Browse files Browse the repository at this point in the history
  • Loading branch information
sibinhho99 committed Aug 16, 2022
1 parent 68609bc commit 62f4223
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/tasks/send_maintenance_mailer.rake
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ namespace :SSID do

@recipients = User.all
@recipients.each do |r|
MaintenanceMailer.maintenance_mail(r.email, args[:start_time], args[:end_time]).deliver_now
if r.email != nil
MaintenanceMailer.maintenance_mailer(r.email, args[:start_time], args[:end_time]).deliver_now
end
end

end
end

0 comments on commit 62f4223

Please sign in to comment.