Skip to content

Commit 73e3ccf

Browse files
authored
refactor to set consistency_level thru req.params
1 parent e92512e commit 73e3ccf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/weaviate/objects.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ def batch_delete(
169169

170170
unless consistency_level.nil?
171171
validate_consistency_level!(consistency_level)
172-
173-
path << "?consistency_level=#{consistency_level.to_s.upcase}"
174172
end
175173

176174
response = client.connection.delete(path) do |req|
@@ -182,6 +180,7 @@ def batch_delete(
182180
}
183181
req.body["output"] = output unless output.nil?
184182
req.body["dryRun"] = dry_run unless dry_run.nil?
183+
req.params["consistency_level"] = consistency_level.to_s.upcase unless consistency_level.nil?
185184
req.params["tenant"] = tenant unless tenant.nil?
186185
end
187186

0 commit comments

Comments
 (0)