mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
REPP: Add renew exp_date sanity check
This commit is contained in:
parent
016c5e802c
commit
546330b178
7 changed files with 15 additions and 13 deletions
|
@ -16,11 +16,14 @@ module Actions
|
|||
domain.add_renew_epp_errors
|
||||
false
|
||||
else
|
||||
domain.validate_exp_dates(params[:exp_date])
|
||||
renew
|
||||
end
|
||||
end
|
||||
|
||||
def renew
|
||||
return false if domain.errors[:epp_errors].any?
|
||||
|
||||
task = Domains::BulkRenew::SingleDomainRenew.run(domain: domain,
|
||||
period: params[:period],
|
||||
unit: params[:period_unit],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue