diff --git a/src/content/docs/workflows/build/rules-of-workflows.mdx b/src/content/docs/workflows/build/rules-of-workflows.mdx index 9a6b0fa4e37da45..8a9fc327065c0db 100644 --- a/src/content/docs/workflows/build/rules-of-workflows.mdx +++ b/src/content/docs/workflows/build/rules-of-workflows.mdx @@ -403,7 +403,7 @@ export default { let instanceId = getTransactionId() // e.g. assuming transaction IDs are unique // or: compose a composite ID and store it in your database // so that you can track all instances associated with a specific user or merchant. - instanceId = `${getUserId(request)}-${await crypto.randomUUID().slice(0, 6)}` + instanceId = `${getUserId(req)}-${await crypto.randomUUID().slice(0, 6)}` let { result } = await addNewInstanceToDB(userId, instanceId) let goodInstance = await env.MY_WORKFLOW.create({ id: userId,