mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-05-04 08:39:36 -05:00
fix: missing comma, workflowInput func
This commit is contained in:
@@ -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"));
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user