Skip to content

Commit 80583a5

Browse files
committed
Fixed missing return
1 parent cdc03a9 commit 80583a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/meilisearch/index.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def add_documents_in_batches(documents, batch_size = 1000, primary_key = nil)
8181
documents.each_slice(batch_size) do |batch|
8282
update_ids.append(add_documents(batch, primary_key))
8383
end
84+
update_ids
8485
end
8586

8687
def add_documents_in_batches!(documents, batch_size = 1000, primary_key = nil)
@@ -89,13 +90,15 @@ def add_documents_in_batches!(documents, batch_size = 1000, primary_key = nil)
8990
update_ids.each do |update_object|
9091
responses.append(wait_for_pending_update(update_object['updateId']))
9192
end
93+
responses
9294
end
9395

9496
def update_documents_in_batches(documents, batch_size = 1000, primary_key = nil)
9597
update_ids = []
9698
documents.each_slice(batch_size) do |batch|
9799
update_ids.append(update_documents(batch, primary_key))
98100
end
101+
update_ids
99102
end
100103

101104
def update_documents_in_batches!(documents, batch_size = 1000, primary_key = nil)
@@ -104,6 +107,7 @@ def update_documents_in_batches!(documents, batch_size = 1000, primary_key = nil
104107
update_ids.each do |update_object|
105108
responses.append(wait_for_pending_update(update_object['updateId']))
106109
end
110+
responses
107111
end
108112

109113
def delete_documents(documents_ids)

0 commit comments

Comments
 (0)