From 0e692864cb21f2c7ccae04c9cef7458db4247e50 Mon Sep 17 00:00:00 2001 From: Rohit Durvasula Date: Wed, 22 May 2024 06:03:24 -0400 Subject: [PATCH] Fix workflow name for PerformWorkflowStep API --- src/client/staking-client.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/staking-client.ts b/src/client/staking-client.ts index 2ccb7b2..e304b39 100644 --- a/src/client/staking-client.ts +++ b/src/client/staking-client.ts @@ -214,8 +214,7 @@ export class StakingClient { stepIndex: number, data: string, ): Promise { - const name: string = `${parent}/${workflowName}`; - const path: string = `/v1/${name}/step`; + const path: string = `/v1/${workflowName}/step`; const method: string = 'POST'; const url: string = this.baseURL + '/orchestration'; @@ -230,7 +229,7 @@ export class StakingClient { ); const req: PerformWorkflowStepRequest = { - name: name, + name: workflowName, step: stepIndex, data, };