Skip to content

Commit

Permalink
Update rules-of-workflows.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
elithrar authored Dec 13, 2024
1 parent 8743135 commit 5952eef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/docs/workflows/build/rules-of-workflows.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ 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)}`
let { result } = await addNewInstance(userId, instanceId)
instanceId = `${getUserId(request)}-${await crypto.randomUUID().slice(0, 6)}`
let { result } = await addNewInstanceToDB(userId, instanceId)
let instance = await env.MY_WORKFLOW.create({
id: userId,
params: payload
Expand Down

0 comments on commit 5952eef

Please sign in to comment.