mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 04:37:30 +02:00
refactoring
This commit is contained in:
parent
48b793d310
commit
6da79df982
1 changed files with 3 additions and 3 deletions
|
@ -25,6 +25,8 @@ class RegistrantUser < User
|
||||||
|
|
||||||
companies = update_contacts_before_receive(companies)
|
companies = update_contacts_before_receive(companies)
|
||||||
companies
|
companies
|
||||||
|
rescue CompanyRegister::NotAvailableError
|
||||||
|
return []
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_contacts_before_receive(companies)
|
def update_contacts_before_receive(companies)
|
||||||
|
@ -42,9 +44,7 @@ class RegistrantUser < User
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return companies
|
companies
|
||||||
rescue CompanyRegister::NotAvailableError
|
|
||||||
nil
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_company_name(contact:, company:)
|
def update_company_name(contact:, company:)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue