Merge pull request #2666 from internetee/2665-fix-expired-status

Manage domain auto expiry status
This commit is contained in:
Timo Võhmar 2024-12-31 10:52:11 +02:00 committed by GitHub
commit 1a063fb1ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)