diff --git a/src/content/docs/workflows/build/events-and-parameters.mdx b/src/content/docs/workflows/build/events-and-parameters.mdx index 50c04d21b15380..e7b8fc38bc97cc 100644 --- a/src/content/docs/workflows/build/events-and-parameters.mdx +++ b/src/content/docs/workflows/build/events-and-parameters.mdx @@ -35,7 +35,7 @@ export default { // Pass our event as the second parameter to the `create` method // on our Workflow binding. let instance = await env.MY_WORKFLOW.create({ - id: await crypto.randomUUID(), + id: crypto.randomUUID(), params: someEvent }); @@ -43,8 +43,6 @@ export default { id: instance.id, details: await instance.status(), }); - - return Response.json({ result }); }, }; ```