mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Merge pull request #1877 from internetee/fix_restwhois_contact_request_readonly
Allow saving of contact request AWS message_id
This commit is contained in:
commit
5c10be4f2a
2 changed files with 7 additions and 5 deletions
|
@ -23,14 +23,15 @@ module Api
|
|||
record = ContactRequest.find_by(id: id)
|
||||
return :not_found unless record
|
||||
|
||||
record.update_status(contact_request_params)
|
||||
record.update_record(contact_request_params)
|
||||
render json: record, status: :ok
|
||||
rescue StandardError
|
||||
head :bad_request
|
||||
end
|
||||
|
||||
def contact_request_params
|
||||
params.require(:contact_request).permit(:email, :whois_record_id, :name, :status, :ip)
|
||||
params.require(:contact_request).permit(:email, :whois_record_id, :name, :status, :ip,
|
||||
:message_id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue