Skip to content

Commit 3518552

Browse files
Clean up spaces and tabs
1 parent b7cf26a commit 3518552

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ Store state durably by returning it from your `step.do` callbacks.
2929

3030
```ts
3131
export default {
32-
async fetch(req: Request, env: Env) {
33-
let someEvent = { url: req.url, createdTimestamp: Date.now() }
34-
// Trigger our Workflow
35-
// Pass our event as the second parameter to the `create` method
36-
// on our Workflow binding.
37-
let instance = await env.MYWORKFLOW.create({
32+
async fetch(req: Request, env: Env) {
33+
let someEvent = { url: req.url, createdTimestamp: Date.now() }
34+
// Trigger our Workflow
35+
// Pass our event as the second parameter to the `create` method
36+
// on our Workflow binding.
37+
let instance = await env.MYWORKFLOW.create({
3838
id: await crypto.randomUUID(),
3939
params: someEvent
4040
});
4141

42-
return Response.json({
43-
id: instance.id,
44-
details: await instance.status(),
45-
});
42+
return Response.json({
43+
id: instance.id,
44+
details: await instance.status(),
45+
});
4646

47-
return Response.json({ result });
48-
},
47+
return Response.json({ result });
48+
},
4949
};
5050
```
5151

0 commit comments

Comments
 (0)