mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 06:26:15 +02:00
Manage domain auto expiry status
This commit is contained in:
parent
7923891c5a
commit
8f878c3573
1 changed files with 1 additions and 0 deletions
|
@ -677,6 +677,7 @@ class Domain < ApplicationRecord
|
|||
statuses << DomainStatus::OK
|
||||
elsif (statuses.length > 1) || !valid?
|
||||
statuses.delete(DomainStatus::OK)
|
||||
statuses.delete(DomainStatus::EXPIRED) unless expired?
|
||||
end
|
||||
|
||||
p_d = statuses.include?(DomainStatus::PENDING_DELETE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue