Skip to content

Commit b7cf26a

Browse files
And another one
1 parent 0c02b2f commit b7cf26a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ export default {
3434
// Trigger our Workflow
3535
// Pass our event as the second parameter to the `create` method
3636
// on our Workflow binding.
37-
let instance = await env.MYWORKFLOW.create(await crypto.randomUUID(), someEvent);
37+
let instance = await env.MYWORKFLOW.create({
38+
id: await crypto.randomUUID(),
39+
params: someEvent
40+
});
3841

3942
return Response.json({
4043
id: instance.id,

0 commit comments

Comments
 (0)