@axway/axway-central-cli 2.8.0-rc.1 → 2.8.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -157,17 +157,14 @@ class PlatformClient {
|
|
|
157
157
|
|
|
158
158
|
async getServiceAccounts(filterRole) {
|
|
159
159
|
const result = await _classPrivateFieldGet(this, _amplifySdk).client.list(await this.getAccountInfo());
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
if (!filterRole) {
|
|
163
|
-
return result.clients || [];
|
|
164
|
-
} // Filter service accounts by filterRole
|
|
160
|
+
let clients = result.clients || [];
|
|
165
161
|
|
|
162
|
+
if (filterRole) {
|
|
163
|
+
console.log('filter clients by ', filterRole);
|
|
164
|
+
clients = clients.filter(client => client === null || client === void 0 ? void 0 : client.roles.find(r => r === filterRole));
|
|
165
|
+
}
|
|
166
166
|
|
|
167
|
-
|
|
168
|
-
const filteredClients = result === null || result === void 0 ? void 0 : result.clients.filter(client => client.roles.find(r => r === filterRole));
|
|
169
|
-
log('filteredClients', filteredClients);
|
|
170
|
-
return filteredClients;
|
|
167
|
+
return clients;
|
|
171
168
|
}
|
|
172
169
|
|
|
173
170
|
async getTeams() {
|