]> cat aescling's git repositories - mastodon.git/commitdiff
Fix `tootctl search deploy` on Ruby 3 (#16346)
authorClaire <claire.github-309c@sitedethib.com>
Tue, 1 Jun 2021 15:31:49 +0000 (17:31 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Jun 2021 15:31:49 +0000 (17:31 +0200)
Fixes #16344

lib/mastodon/search_cli.rb

index c0491744bcf74ec7955d293d6c4b4a79ae710a17..0126dfcff790ff8cbf6e950d4ace548322a010ef 100644 (file)
@@ -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)