Skip to content

Commit 1f54ea3

Browse files
committed
Update param name
1 parent eed9d37 commit 1f54ea3

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/typesense/document.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ def delete
1616
@api_call.delete(endpoint_path)
1717
end
1818

19-
def update(partial_document, query_parameters = {})
20-
@api_call.patch(endpoint_path, partial_document, query_parameters)
19+
def update(partial_document, options = {})
20+
@api_call.patch(endpoint_path, partial_document, options)
2121
end
2222

2323
private

lib/typesense/documents.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ def create(document)
1616
@api_call.post(endpoint_path, document)
1717
end
1818

19-
def upsert(document, query_parameters = {})
20-
@api_call.post(endpoint_path, document, query_parameters.merge(action: :upsert))
19+
def upsert(document, options = {})
20+
@api_call.post(endpoint_path, document, options.merge(action: :upsert))
2121
end
2222

2323
def update(document, query_parameters = {})
24-
@api_call.post(endpoint_path, document, query_parameters.merge(action: :update))
24+
@api_call.post(endpoint_path, document, options.merge(action: :update))
2525
end
2626

2727
def create_many(documents, options = {})

0 commit comments

Comments
 (0)