fix(workflow-engine-*): subscribe response and error (#6869)
This commit is contained in:
1 parent
d97af91a8d
commit
e603726985
6 files changed
+67
-43
No files matched your search
@@ -32,8 +32,6 @@ async function resolveProperty(property, transactionContext) {
|
||||
* @internal
|
||||
*/
|
||||
export async function resolveValue(input, transactionContext) {
|
||||
const copiedInput = deepCopy(input)
|
||||
|
||||
const unwrapInput = async (
|
||||
inputTOUnwrap: Record<string, unknown>,
|
||||
parentRef: any
|
||||
@@ -66,6 +64,11 @@ export async function resolveValue(input, transactionContext) {
|
||||
return parentRef
|
||||
}
|
||||
|
||||
const copiedInput =
|
||||
input?.__type === OrchestrationUtils.SymbolWorkflowWorkflowData
|
||||
? deepCopy(input.output)
|
||||
: deepCopy(input)
|
||||
|
||||
const result = copiedInput?.__type
|
||||
? await resolveProperty(copiedInput, transactionContext)
|
||||
: await unwrapInput(copiedInput, {})
|
||||
|
||||
Reference in new issue
Block a user