mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 20:19:34 +02:00
Merge pull request #1866 from internetee/fix-registrant-domain-query
Registrant API: Fix company domain query
This commit is contained in:
commit
52815899e0
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ class Domain < ApplicationRecord
|
||||||
companies = Contact.registrant_user_company_contacts(registrant_user)
|
companies = Contact.registrant_user_company_contacts(registrant_user)
|
||||||
from(
|
from(
|
||||||
"(#{registrant_user_administered_domains(registrant_user).to_sql} UNION " \
|
"(#{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"
|
"#{registrant_user_domains_company(companies, except_tech: true).to_sql}) AS domains"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue