We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d31287 commit a2d2cc2Copy full SHA for a2d2cc2
src/content/docs/workflows/build/rules-of-workflows.mdx
@@ -403,7 +403,7 @@ export default {
403
let instanceId = getTransactionId() // e.g. assuming transaction IDs are unique
404
// or: compose a composite ID and store it in your database
405
// so that you can track all instances associated with a specific user or merchant.
406
- instanceId = `${getUserId(request)}-${await crypto.randomUUID().slice(0, 6)}`
+ instanceId = `${getUserId(req)}-${await crypto.randomUUID().slice(0, 6)}`
407
let { result } = await addNewInstanceToDB(userId, instanceId)
408
let goodInstance = await env.MY_WORKFLOW.create({
409
id: instanceId,
0 commit comments