From abf4c2ab214b0fee14d50af98263e5389e960ae3 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 1 Jun 2021 17:31:49 +0200 Subject: [PATCH] Fix `tootctl search deploy` on Ruby 3 (#16346) Fixes #16344 --- lib/mastodon/search_cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mastodon/search_cli.rb b/lib/mastodon/search_cli.rb index c0491744bcf..0126dfcff79 100644 --- a/lib/mastodon/search_cli.rb +++ b/lib/mastodon/search_cli.rb @@ -102,7 +102,7 @@ module Mastodon ActiveRecord::Base.connection_pool.with_connection do grouped_records = type.adapter.send(:grouped_objects, records) - bulk_body = Chewy::Type::Import::BulkBuilder.new(type, grouped_records).bulk_body + bulk_body = Chewy::Type::Import::BulkBuilder.new(type, **grouped_records).bulk_body end index_count = grouped_records[:index].size if grouped_records.key?(:index)