mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Refactor some dispute logic
This commit is contained in:
parent
e7ad4a7c64
commit
be14ede8b6
8 changed files with 42 additions and 48 deletions
|
@ -44,7 +44,7 @@ module Admin
|
|||
|
||||
# DELETE /admin/disputes/1
|
||||
def delete
|
||||
@dispute.update(closed: true)
|
||||
@dispute.close
|
||||
redirect_to admin_disputes_url, notice: 'Dispute was successfully closed.'
|
||||
end
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ module Epp
|
|||
updated = @domain.update(params[:parsed_frame], current_user)
|
||||
(handle_errors(@domain) && return) unless updated
|
||||
|
||||
Dispute.active.close_by_domain(@domain.name) if @domain.disputed?
|
||||
Dispute.close_by_domain(@domain.name) if @domain.disputed?
|
||||
pending = @domain.epp_pending_update.present?
|
||||
render_epp_response "/epp/domains/success#{'_pending' if pending}"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue