mirror of
https://github.com/internetee/registry.git
synced 2025-07-26 04:28:27 +02:00
Use central method for appending legaldocs to domains/contacts
This commit is contained in:
parent
7caa544c83
commit
50bf708b6a
10 changed files with 61 additions and 73 deletions
|
@ -21,8 +21,9 @@ module Domains
|
|||
end
|
||||
|
||||
def update_domain
|
||||
frame_json = domain.pending_json['frame']
|
||||
user = ApiUser.find(domain.pending_json['current_user_id'])
|
||||
frame = domain.pending_json['frame'] ? domain.pending_json['frame'].with_indifferent_access : {}
|
||||
frame = frame_json ? frame_json.with_indifferent_access : {}
|
||||
|
||||
domain.upid = user.registrar.id if user.registrar
|
||||
domain.up_date = Time.zone.now
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue