0
0
Fork 0

Fix undefined method error when batch-removing statuses with ElasticSearch on (#15421)

This commit is contained in:
Eugen Rochko 2020-12-24 15:53:26 +01:00 committed by GitHub
parent 7e6d3a7d9a
commit ba0b79fc5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

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