Merge branch 'master' into 2275-fix-csv-view-for-historical-data

This commit is contained in:
Thiago Youssef 2022-04-05 10:13:51 +03:00
commit a7b9fb7bb6
13 changed files with 131 additions and 42 deletions

View file

@ -34,6 +34,17 @@ module Api
end
end
def do_need_update_contact
result = current_registrant_user.do_need_update_contact?
render json: { update_contacts: result[:result], counter: result[:counter] }
end
def update_company_contacts
companies = current_registrant_user.update_company_contacts
render json: { message: 'get it', companies: companies }
end
def update
logger.debug 'Received update request'
logger.debug params