Skip to content

Commit 4c35138

Browse files
authored
Make Multi Tenancy config more resilient (#353)
1 parent 6a4164d commit 4c35138

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/collections/config/utils.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,13 @@ class ConfigMapping {
395395
};
396396
}
397397
static multiTenancy(v?: WeaviateMultiTenancyConfig): MultiTenancyConfig {
398-
if (v === undefined) throw new WeaviateDeserializationError('Multi tenancy was not returned by Weaviate');
398+
if (v === undefined) {
399+
return {
400+
autoTenantActivation: false,
401+
autoTenantCreation: false,
402+
enabled: false,
403+
};
404+
}
399405
return {
400406
autoTenantActivation: v.autoTenantActivation ? v.autoTenantActivation : false,
401407
autoTenantCreation: v.autoTenantCreation ? v.autoTenantCreation : false,

0 commit comments

Comments
 (0)