mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Registrant API: Fix company domain query
This commit is contained in:
parent
1999493bac
commit
747aa502d0
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ class Domain < ApplicationRecord
|
|||
companies = Contact.registrant_user_company_contacts(registrant_user)
|
||||
from(
|
||||
"(#{registrant_user_administered_domains(registrant_user).to_sql} UNION " \
|
||||
"#{registrant_user_company_registrant(registrant_user).to_sql} UNION " \
|
||||
"#{registrant_user_company_registrant(companies).to_sql} UNION " \
|
||||
"#{registrant_user_domains_company(companies, except_tech: true).to_sql}) AS domains"
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue