diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-03-12 23:47:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-12 23:47:55 +0100 |
commit | f432db7b9f54501269c6377faf85b1b4b1424239 (patch) | |
tree | 9e08413951f351272aac31aabbade730d90021d2 /lib | |
parent | 1ed12d5e2f6dc0f7d891916df84be6e06d37786d (diff) |
Fix sidekiq jobs not triggering Elasticsearch index updates (#24046)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mastodon/sidekiq_middleware.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mastodon/sidekiq_middleware.rb b/lib/mastodon/sidekiq_middleware.rb index c75e8401f..9832e1a27 100644 --- a/lib/mastodon/sidekiq_middleware.rb +++ b/lib/mastodon/sidekiq_middleware.rb @@ -3,8 +3,8 @@ class Mastodon::SidekiqMiddleware BACKTRACE_LIMIT = 3 - def call(*) - yield + def call(*, &block) + Chewy.strategy(:mastodon, &block) rescue Mastodon::HostValidationError # Do not retry rescue => e |