mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
Merge pull request #2666 from internetee/2665-fix-expired-status
Manage domain auto expiry status
This commit is contained in:
commit
1a063fb1ae
1 changed files with 1 additions and 0 deletions
|
@ -679,6 +679,7 @@ class Domain < ApplicationRecord
|
||||||
statuses << DomainStatus::OK
|
statuses << DomainStatus::OK
|
||||||
elsif (statuses.length > 1) || !valid?
|
elsif (statuses.length > 1) || !valid?
|
||||||
statuses.delete(DomainStatus::OK)
|
statuses.delete(DomainStatus::OK)
|
||||||
|
statuses.delete(DomainStatus::EXPIRED) unless expired?
|
||||||
end
|
end
|
||||||
|
|
||||||
p_d = statuses.include?(DomainStatus::PENDING_DELETE)
|
p_d = statuses.include?(DomainStatus::PENDING_DELETE)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue