diff --git a/typescript-client/client.ts b/typescript-client/client.ts index 159b19ef95..f77cab43d7 100644 --- a/typescript-client/client.ts +++ b/typescript-client/client.ts @@ -332,7 +332,6 @@ export async function setState(state: any): Promise { await setResource(state, undefined, "state"); } - /** * Set a flow user state * @param key key of the state @@ -370,11 +369,11 @@ export async function setFlowUserState( export async function getFlowUserState( key: string, errorIfNotPossible?: boolean -): Promise { +): Promise { !clientSet && setClient(); const workspace = getWorkspace(); try { - await JobService.getFlowUserState({ + return await JobService.getFlowUserState({ workspace, id: await getRootJobId(), key, @@ -388,7 +387,6 @@ export async function getFlowUserState( } } - // /** // * Set the shared state // * @param state state to set