Skip to content

Commit 6226621

Browse files
authored
cds: list filter for subdomain (#158)
1 parent 669b5b4 commit 6226621

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1313

1414
- svm: add client headers `Client-Name` and `Client-Version` for all calls to service-manager.
1515

16+
### FIXED
17+
18+
- cds: list filter for subdomain works again
19+
1620
## v0.11.1 - 2025-12-10
1721

1822
### ADDED

src/submodules/capMultitenancy.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ const _cdsTenants = async (context, tenant) => {
7878
const resultRaw = await response.json();
7979
let result = Array.isArray(resultRaw) ? resultRaw : [resultRaw];
8080
if (filterSubdomain) {
81-
result = result.filter(({ subscribedSubdomain }) => subscribedSubdomain === filterSubdomain);
81+
result = result.filter(
82+
(tenant) => filterSubdomain === (tenant.subscriber?.subaccountSubdomain ?? tenant.subscribedSubdomain)
83+
);
8284
}
8385
return result;
8486
};

0 commit comments

Comments
 (0)