about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/models/instance.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/instance.rb b/app/models/instance.rb
index ad885dde6..0839894d9 100644
--- a/app/models/instance.rb
+++ b/app/models/instance.rb
@@ -9,7 +9,7 @@ class Instance
     @domain         = resource.domain
     @accounts_count = resource.is_a?(DomainBlock) ? nil : resource.accounts_count
     @domain_block   = resource.is_a?(DomainBlock) ? resource : DomainBlock.find_by(domain: domain)
-    @updated_at     = resource.updated_at
+    @updated_at     = resource.is_a?(DomainBlock) ? resource.updated_at : 0
   end
 
   def cached_sample_accounts