Skip to content

Commit 2987a27

Browse files
committed
Remove client-side batching of tenants.create endpoint
1 parent bf4aec6 commit 2987a27

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
env:
1010
WEAVIATE_124: 1.24.21
1111
WEAVIATE_125: 1.25.8
12-
WEAVIATE_126: 1.26.0
12+
WEAVIATE_126: 1.26.1
1313

1414
jobs:
1515
checks:

src/collections/tenants/index.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,10 @@ const tenants = (
4444
return result;
4545
});
4646
return {
47-
create: async (tenants: TenantBC | TenantCreate | (TenantBC | TenantCreate)[]) => {
48-
const out: Tenant[] = [];
49-
for await (const res of Serialize.tenants(parseValueOrValueArray(tenants), Serialize.tenantCreate).map(
50-
(tenants) =>
51-
new TenantsCreator(connection, collection, tenants).do().then((res) => res.map(parseTenantREST))
52-
)) {
53-
out.push(...res);
54-
}
55-
return out;
56-
},
47+
create: (tenants: TenantBC | TenantCreate | (TenantBC | TenantCreate)[]) =>
48+
new TenantsCreator(connection, collection, parseValueOrValueArray(tenants).map(Serialize.tenantCreate))
49+
.do()
50+
.then((res) => res.map(parseTenantREST)),
5751
get: async function () {
5852
const check = await dbVersionSupport.supportsTenantsGetGRPCMethod();
5953
return check.supports ? getGRPC() : getREST();

0 commit comments

Comments
 (0)