Fix nil error when viewing suspended domain in admin UI (#17765)
This commit is contained in:
1 parent
74f406cfc9
commit
5db1f377ea
2 files changed
+6
-2
No files matched your search
@@ -32,8 +32,12 @@ class Instance < ApplicationRecord
|
||||
@delivery_failure_tracker ||= DeliveryFailureTracker.new(domain)
|
||||
end
|
||||
|
||||
def purgeable?
|
||||
unavailable? || domain_block&.suspend?
|
||||
end
|
||||
|
||||
def unavailable?
|
||||
unavailable_domain.present? || domain_block&.suspend?
|
||||
unavailable_domain.present?
|
||||
end
|
||||
|
||||
def failing?
|
||||
|
||||
Reference in new issue
Block a user