mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +02:00
Improve epp domain renew
This commit is contained in:
parent
fed8c94884
commit
e65e6cfbd2
2 changed files with 11 additions and 3 deletions
|
@ -31,7 +31,11 @@ module Epp::DomainsHelper
|
|||
@domain = find_domain
|
||||
|
||||
handle_errors(@domain) and return unless @domain
|
||||
handle_errors(@domain) and return unless @domain.renew(@ph[:curExpDate], @ph[:period])
|
||||
handle_errors(@domain) and return unless @domain.renew(
|
||||
parsed_frame.css('curExpDate').text,
|
||||
parsed_frame.css('period').text,
|
||||
parsed_frame.css('period').first['unit']
|
||||
)
|
||||
|
||||
render '/epp/domains/renew'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue