mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 22:16:19 +02:00
Modifications for updating business and private contacts
This commit is contained in:
parent
4afd32ebff
commit
eb64b3aca4
10 changed files with 159 additions and 163 deletions
|
@ -34,15 +34,15 @@ module Api
|
|||
end
|
||||
end
|
||||
|
||||
def do_need_update_contact
|
||||
result = current_registrant_user.do_need_update_contact?
|
||||
def do_need_update_contacts
|
||||
result = current_registrant_user.do_need_update_contacts?
|
||||
render json: { update_contacts: result[:result], counter: result[:counter] }
|
||||
end
|
||||
|
||||
def update_company_contacts
|
||||
companies = current_registrant_user.update_company_contacts
|
||||
def update_contacts
|
||||
contacts = current_registrant_user.update_contacts
|
||||
|
||||
render json: { message: 'get it', companies: companies }
|
||||
render json: { message: 'get it', contacts: contacts }
|
||||
end
|
||||
|
||||
def update
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue