mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Updated history pending view #2785
This commit is contained in:
parent
05bcce0669
commit
330c0c326f
3 changed files with 20 additions and 8 deletions
|
@ -9,7 +9,9 @@ class Admin::DomainVersionsController < AdminController
|
|||
if @domain.pending_json.present?
|
||||
frame = Nokogiri::XML(@domain.pending_json['frame'])
|
||||
@pending_user = User.find(@domain.pending_json['current_user_id'])
|
||||
@pending_domain = Epp::Domain.new_from_epp(frame, @pending_user)
|
||||
@pending_domain = Epp::Domain.find(@domain.id)
|
||||
@pending_domain.updated_at = @domain.pending_json['domain']['updated_at'].last
|
||||
@pending_domain.update(frame, @pending_user, false)
|
||||
end
|
||||
end
|
||||
# rubocop:enable Style/GuardClause
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue