Skip to content

Commit a9a07d8

Browse files
committed
fix
1 parent f917d69 commit a9a07d8

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

lib/platformApi/PlatformApiLogicClient.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
9898
const secretId = secret.id;
9999
const secretName = secret.attributes.name.trim();
100100
let componentIds: any = [];
101-
if (secret.relationships.component) componentIds.push(secret.relationships.component.data.id)
101+
if (secret.relationships.component) componentIds.push(secret.relationships.component.data.id);
102102
if (secret.relationships.auth_client) {
103103
const clientId = secret.relationships.auth_client.data.id;
104104
const clientResponse = await this.makeRequest({ method: 'GET', url: `/auth-clients/${clientId}` });
105105
componentIds = clientResponse.relationships.components.data.map(x => x.id);
106106
}
107-
resp.push({ secretId, secretName, componentIds })
107+
resp.push({ secretId, secretName, componentIds });
108108
}
109109
return resp;
110110
}
@@ -176,10 +176,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
176176
const workspaces = await this.fetchWorkspaceList({});
177177
if (!workspaceId) {
178178
const nonFlatFlows = await mapLimit(workspaces, realSplitFactor,
179-
async workspace => this.fetchAllFlowsForWorkspace({
180-
parallelCalls: parallelizationPerTask,
181-
workspaceId: workspace.workspaceId,
182-
}));
179+
async workspace => this.fetchAllFlowsForWorkspace({ parallelCalls: parallelizationPerTask, workspaceId: workspace.workspaceId }));
183180
flows = nonFlatFlows.flat();
184181
} else {
185182
flows = await this.fetchAllFlowsForWorkspace({
@@ -273,7 +270,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
273270
/* eslint-disable-next-line no-param-reassign */
274271
soFar[contract.id] = contract;
275272
return soFar;
276-
}, {});
273+
}, {});
277274

278275
const nonFlatWorkspaces = await mapLimit(
279276
contracts,
@@ -550,7 +547,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
550547
/* eslint-disable-next-line no-param-reassign */
551548
soFar[sample.sampleId] = sample.sample;
552549
return soFar;
553-
}, {});
550+
}, {});
554551
flow.attributes.graph.nodes
555552
.filter(node => node.selected_data_samples)
556553
.forEach((node) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@elastic.io/component-commons-library",
3-
"version": "1.2.0-dev.3",
3+
"version": "1.2.0-dev.4",
44
"description": "Library for most common component development cases",
55
"author": {
66
"name": "elastic.io GmbH",

0 commit comments

Comments
 (0)