mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
Hash: select entries by keys
This commit is contained in:
parent
c23075fa19
commit
c58b4fb2e9
11 changed files with 201 additions and 141 deletions
|
@ -22,13 +22,17 @@ module Domains
|
|||
|
||||
def update_domain
|
||||
frame_json = domain.pending_json['frame']
|
||||
user = ApiUser.find(domain.pending_json['current_user_id'])
|
||||
frame = frame_json ? frame_json.with_indifferent_access : {}
|
||||
assign_domain_update_meta
|
||||
|
||||
Actions::DomainUpdate.new(domain, frame, true).call
|
||||
end
|
||||
|
||||
def assign_domain_update_meta
|
||||
user = ApiUser.find(domain.pending_json['current_user_id'])
|
||||
|
||||
domain.upid = user.registrar.id if user.registrar
|
||||
domain.up_date = Time.zone.now
|
||||
|
||||
Actions::DomainUpdate.new(domain, frame, true).call
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue