mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Move iptables update to epp session update
This commit is contained in:
parent
dcfafdc2d7
commit
e1dfbe3a67
2 changed files with 2 additions and 2 deletions
|
@ -8,8 +8,8 @@ class Epp::PollsController < EppController
|
||||||
|
|
||||||
def req_poll
|
def req_poll
|
||||||
@message = current_user.queued_messages.last
|
@message = current_user.queued_messages.last
|
||||||
render_epp_response 'epp/poll/poll_no_messages' and return unless @message
|
|
||||||
|
|
||||||
|
render_epp_response 'epp/poll/poll_no_messages' and return unless @message
|
||||||
if @message.attached_obj_type && @message.attached_obj_id
|
if @message.attached_obj_type && @message.attached_obj_id
|
||||||
@object = Object.const_get(@message.attached_obj_type).find(@message.attached_obj_id)
|
@object = Object.const_get(@message.attached_obj_type).find(@message.attached_obj_id)
|
||||||
end
|
end
|
||||||
|
|
|
@ -37,6 +37,7 @@ class EppController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_epp_session
|
def update_epp_session
|
||||||
|
iptables_counter_update
|
||||||
e_s = epp_session
|
e_s = epp_session
|
||||||
return if e_s.new_record?
|
return if e_s.new_record?
|
||||||
|
|
||||||
|
@ -98,7 +99,6 @@ class EppController < ApplicationController
|
||||||
@response = render_to_string(*args)
|
@response = render_to_string(*args)
|
||||||
render xml: @response
|
render xml: @response
|
||||||
write_to_epp_log
|
write_to_epp_log
|
||||||
iptables_counter_update
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# VALIDATION
|
# VALIDATION
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue