Skip to content

Commit 18c0b49

Browse files
authored
fix: always remove createIfNotExists from request options (#458)
1 parent 1a2c572 commit 18c0b49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/algolia/search_index.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ def partial_update_objects(objects, opts = {})
303303
request_options = symbolize_hash(opts)
304304
if get_option(request_options, 'createIfNotExists')
305305
generate_object_id = true
306-
request_options.delete(:createIfNotExists)
307306
end
307+
request_options.delete(:createIfNotExists)
308308

309309
if generate_object_id
310310
IndexingResponse.new(self, raw_batch(chunk('partialUpdateObject', objects), request_options))

0 commit comments

Comments
 (0)