mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +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
|
@ -24,9 +24,10 @@ class ContactRequest < ApplicationRecord
|
|||
contact_request
|
||||
end
|
||||
|
||||
def update_status(params)
|
||||
self.status = params['status']
|
||||
self.ip_address = params['ip']
|
||||
def update_record(params)
|
||||
self.status = params['status'] if params['status']
|
||||
self.ip_address = params['ip'] if params['ip']
|
||||
self.message_id = params['ip'] if params['message_id']
|
||||
save!
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue