about summary refs log tree commit diff
path: root/app/services/batched_remove_status_service.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-12-24 15:53:26 +0100
committerGitHub <noreply@github.com>2020-12-24 15:53:26 +0100
commitba0b79fc5c698b3d2ca4849bc3a711c75bd76d22 (patch)
tree3e6743f3a12edc524f2dbb1319835b2a9e73a7a9 /app/services/batched_remove_status_service.rb
parent7e6d3a7d9ad3343c7147032fef50bf1cc308a872 (diff)
Fix undefined method error when batch-removing statuses with ElasticSearch on (#15421)
Diffstat (limited to 'app/services/batched_remove_status_service.rb')
-rw-r--r--app/services/batched_remove_status_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/batched_remove_status_service.rb b/app/services/batched_remove_status_service.rb
index 5000062e4..b54bcae35 100644
--- a/app/services/batched_remove_status_service.rb
+++ b/app/services/batched_remove_status_service.rb
@@ -31,7 +31,7 @@ class BatchedRemoveStatusService < BaseService
 
     # Since we skipped all callbacks, we also need to manually
     # deindex the statuses
-    Chewy.strategy.current.update(StatusesIndex, statuses_and_reblogs) if Chewy.enabled?
+    Chewy.strategy.current.update(StatusesIndex::Status, statuses_and_reblogs) if Chewy.enabled?
 
     return if options[:skip_side_effects]