mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 12:09:34 +02:00
Update set_status.rb
This commit is contained in:
parent
8410ef451b
commit
9202031bf6
1 changed files with 2 additions and 9 deletions
|
@ -27,15 +27,8 @@ module Domains
|
||||||
private
|
private
|
||||||
|
|
||||||
def set_status_notes
|
def set_status_notes
|
||||||
if reason == 'invalid_company'
|
domain.status_notes[DomainStatus::FORCE_DELETE] = "Company no: #{domain.registrant.ident} #{"+ #{notes}" if notes.present?}" if reason == 'invalid_company'
|
||||||
note = "Company no: #{domain.registrant.ident}"
|
domain.status_notes[DomainStatus::FORCE_DELETE] = email if reason == 'invalid_email'
|
||||||
note += " + #{notes}" if notes.present?
|
|
||||||
domain.status_notes[DomainStatus::FORCE_DELETE] = note
|
|
||||||
end
|
|
||||||
|
|
||||||
if reason == 'invalid_email'
|
|
||||||
domain.status_notes[DomainStatus::FORCE_DELETE] = email
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def soft_forcedelete_dates(years)
|
def soft_forcedelete_dates(years)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue