mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-22 21:26:52 +00:00
parent
abd7b4636a
commit
abf4c2ab21
|
@ -102,7 +102,7 @@ module Mastodon
|
||||||
|
|
||||||
ActiveRecord::Base.connection_pool.with_connection do
|
ActiveRecord::Base.connection_pool.with_connection do
|
||||||
grouped_records = type.adapter.send(:grouped_objects, records)
|
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
|
end
|
||||||
|
|
||||||
index_count = grouped_records[:index].size if grouped_records.key?(:index)
|
index_count = grouped_records[:index].size if grouped_records.key?(:index)
|
||||||
|
|
Loading…
Reference in a new issue