Skip to content

Commit 92fa94b

Browse files
committed
fix code block
1 parent 02bd63c commit 92fa94b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/content/docs/workflows/build/call-workflows-from-pages.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,11 @@ Your [Pages Function](/pages/functions/get-started/) can then make a regular `fe
123123
export const onRequest: PagesFunction<Env> = async (context) => {
124124
// Other code
125125
let payload = {"hello": "world"}
126-
const instanceStatus = fetch("https://YOUR_WORKER.workers.dev/", {
126+
const instanceStatus = await fetch("https://YOUR_WORKER.workers.dev/", {
127127
method: "POST",
128-
body: JSON.stringify(payload) // Send a paylod for our Worker to pass to the Workflow
129-
}
128+
body: JSON.stringify(payload) // Send a payload for our Worker to pass to the Workflow
129+
})
130+
130131
return Response.json(instanceStatus);
131132
};
132133
```

0 commit comments

Comments
 (0)