mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
HOTFIX: if no companies there, should return an empty array
This commit is contained in:
parent
00bb2ffb45
commit
48b793d310
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class RegistrantUser < User
|
|||
end
|
||||
|
||||
def update_contacts_before_receive(companies)
|
||||
return if companies.blank?
|
||||
return [] if companies.blank?
|
||||
|
||||
companies.each do |company|
|
||||
contacts = Contact.where(ident: company.registration_number, ident_country_code: 'EE')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue