Skip to content

Commit 3523800

Browse files
authored
Update rules-of-workflows.mdx
Fixed wrong argument passed to the create fn
1 parent 21404c9 commit 3523800

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
@@ -310,7 +310,7 @@ export default {
310310
instanceId = `${getUserId(request)}-${await crypto.randomUUID().slice(0, 6)}`
311311
let { result } = await addNewInstanceToDB(userId, instanceId)
312312
let goodInstance = await env.MY_WORKFLOW.create({
313-
id: userId,
313+
id: instanceId,
314314
params: payload
315315
});
316316

0 commit comments

Comments
 (0)