mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 09:45:11 +02:00
Remove expire statuses on domain on renew #2622
This commit is contained in:
parent
cd1f04f155
commit
d554e12116
2 changed files with 30 additions and 0 deletions
|
@ -437,6 +437,9 @@ class Epp::Domain < Domain
|
|||
self.period = period
|
||||
self.period_unit = unit
|
||||
|
||||
domain_statuses.where(value: DomainStatus::SERVER_HOLD).destroy_all
|
||||
domain_statuses.where(value: DomainStatus::EXPIRED).destroy_all
|
||||
|
||||
save
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue