Skip to content
Snippets Groups Projects
Unverified Commit 2ab3e91e authored by ThibG's avatar ThibG Committed by GitHub
Browse files

Fix BatchedRemoveStatusService not working without ES in rails console (#15408)


Not a huge deal but may cause surprising failures in custom scripts and
development.

Co-authored-by: default avatarClaire <claire.github-309c@sitedethib.com>
parent 3249d35b
No related branches found
No related tags found
No related merge requests found
......@@ -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)
Chewy.strategy.current.update(StatusesIndex, statuses_and_reblogs) if Chewy.enabled?
return if options[:skip_side_effects]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment