Skip to content

Commit 181eaca

Browse files
fix spec
1 parent b16589e commit 181eaca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/weaviate/schema.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ def add_tenants(
100100
class_name:,
101101
tenants:
102102
)
103-
client.connection.post("#{PATH}/#{class_name}/tenants") do |req|
103+
response = client.connection.post("#{PATH}/#{class_name}/tenants") do |req|
104104
tenants_str = tenants.map { |t| %({"name": "#{t}"}) }.join(", ")
105105
req.body = "[#{tenants_str}]"
106106
end
107+
response.body
107108
end
108109

109110
# List tenants of a class.

0 commit comments

Comments
 (0)