Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/workflows/build/rules-of-workflows.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading