From 9fd44328dd42d94d534c5af4247c31ddea601e14 Mon Sep 17 00:00:00 2001 From: camel2243 Date: Wed, 10 Jul 2024 20:31:16 +0800 Subject: [PATCH] Fix get_objects fails with attributesToRetrieve --- lib/algolia/search_index.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/algolia/search_index.rb b/lib/algolia/search_index.rb index e2609b84..3bbcc48d 100644 --- a/lib/algolia/search_index.rb +++ b/lib/algolia/search_index.rb @@ -199,7 +199,7 @@ def get_object(object_id, opts = {}) def get_objects(object_ids, opts = {}) request_options = symbolize_hash(opts) attributes_to_retrieve = get_option(request_options, 'attributesToRetrieve') - request_options.delete(:attributesToRetrieve) + opts.delete(:attributesToRetrieve) requests = [] object_ids.each do |object_id|