Skip to content

Commit 94f3779

Browse files
authored
Update src/content/docs/workflows/build/rules-of-workflows.mdx
1 parent 7952752 commit 94f3779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/workflows/build/rules-of-workflows.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ When creating multiple Workflow instances, use the [`createBatch`](/workflows/bu
459459
```ts
460460
export default {
461461
async fetch(req: Request, env: Env): Promise<Response> {
462-
let instances = [{ id: "order-1001", params: { totalUsd: 29.99 }}, { id: "order-1002", params: { totalUsd: 9.49 }}];
462+
let instances = [{id: "user1", params: {name: "John"}}, {id: "user2", params: {name: "Jane"}}, {id: "user3", params: {name: "Alice"}}, {id: "user4", params: {name: "Bob"}}];
463463

464464
// 🔴 Bad: Create them one by one, which is more likely to hit creation rate limits.
465465
for (let instance of instances) {

0 commit comments

Comments
 (0)