fix: missing comma, workflowInput func

This commit is contained in:
g
2024-02-26 16:11:42 -08:00
parent 6680dff7d9
commit a4fd3f910c
@@ -24,7 +24,7 @@ const workflow: Workflow = {
},
{
name: "step2",
parents: ["step1"]
parents: ["step1"],
run: (ctx) => {
console.log("executed step2!");
return { step2: "step2" };
@@ -50,7 +50,7 @@ const stepPrintsInput: Step = {
name: "step2",
parents: ["step1"],
run: (ctx) => {
console.log("executed step2!", ctx.workflowInput["name"]);
console.log("executed step2!", ctx.workflowInput("name"));
},
};
```