Skip to content

Commit c6c94e8

Browse files
authored
Update events-and-parameters.mdx
In "Pass parameters to a Workflow" example * Remove await from crypto.randomUUID() call * Remove redundant return
1 parent d58b105 commit c6c94e8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/content/docs/workflows/build/events-and-parameters.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,14 @@ export default {
3535
// Pass our event as the second parameter to the `create` method
3636
// on our Workflow binding.
3737
let instance = await env.MY_WORKFLOW.create({
38-
id: await crypto.randomUUID(),
38+
id: crypto.randomUUID(),
3939
params: someEvent
4040
});
4141

4242
return Response.json({
4343
id: instance.id,
4444
details: await instance.status(),
4545
});
46-
47-
return Response.json({ result });
4846
},
4947
};
5048
```

0 commit comments

Comments
 (0)