fix issue where automation meta fields were being overridden

This commit is contained in:
Peter Clement 2024-04-11 11:31:26 +01:00
parent c753ffede9
commit 2149b7dc57
1 changed files with 7 additions and 6 deletions

View File

@ -374,14 +374,16 @@ class Orchestrator {
for (let [innerObject, innerValue] of Object.entries(
originalStepInput[key][innerKey]
)) {
if (typeof innerValue === "string") {
originalStepInput[key][innerKey][innerObject] =
automationUtils.substituteLoopStep(
innerValue as string,
innerValue,
`steps.${loopStepNumber}`
)
}
}
}
}
} else {
if (typeof value === "string") {
originalStepInput[key] =
@ -458,7 +460,6 @@ class Orchestrator {
inputs,
step.schema.inputs
)
try {
// appId is always passed
const outputs = await stepFn({