Browse Source

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: Claire <claire.github-309c@sitedethib.com>
closed-social-v3
ThibG 3 years ago
committed by GitHub
parent
commit
2ab3e91eaf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/batched_remove_status_service.rb

+ 1
- 1
app/services/batched_remove_status_service.rb 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)
Chewy.strategy.current.update(StatusesIndex, statuses_and_reblogs) if Chewy.enabled?
return if options[:skip_side_effects]

Loading…
Cancel
Save