about summary refs log tree commit diff
path: root/app/models/account_stat.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/account_stat.rb')
-rw-r--r--app/models/account_stat.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/account_stat.rb b/app/models/account_stat.rb
index 9813aa84f..6d1097cec 100644
--- a/app/models/account_stat.rb
+++ b/app/models/account_stat.rb
@@ -16,6 +16,8 @@
 class AccountStat < ApplicationRecord
   belongs_to :account, inverse_of: :account_stat
 
+  update_index('accounts#account', :account) if Chewy.enabled?
+
   def increment_count!(key)
     update(attributes_for_increment(key))
   end