mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Merge pull request #43 from internetee/story/110391728-failing-email
Story/110391728 failing email
This commit is contained in:
commit
31afc39fbb
2 changed files with 2 additions and 2 deletions
|
@ -488,7 +488,7 @@ class Contact < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def update_related_whois_records
|
||||
related_domain_descriptions.each{ |x, y| WhoisRecord.find_by(name: x).save}
|
||||
related_domain_descriptions.each{ |x, y| WhoisRecord.find_by(name: x).try(:save) }
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -239,7 +239,7 @@ class Domain < ActiveRecord::Base
|
|||
end
|
||||
count += 1
|
||||
if domain.pending_update?
|
||||
send_mail :pending_update_expired_notification_for_new_registrant
|
||||
domain.send_mail :pending_update_expired_notification_for_new_registrant
|
||||
end
|
||||
if domain.pending_delete? || domain.pending_delete_confirmation?
|
||||
DomainMailer.pending_delete_expired_notification(domain.id, true).deliver
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue