Skip to content

Commit 5952eef

Browse files
authored
Update rules-of-workflows.mdx
1 parent 8743135 commit 5952eef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/workflows/build/rules-of-workflows.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ export default {
306306
let instanceId = getTransactionId() // e.g. assuming transaction IDs are unique
307307
// or: compose a composite ID and store it in your database
308308
// so that you can track all instances associated with a specific user or merchant.
309-
instanceId = `${getUserId(request}-${await crypto.randomUUID().slice(0, 6)}`
310-
let { result } = await addNewInstance(userId, instanceId)
309+
instanceId = `${getUserId(request)}-${await crypto.randomUUID().slice(0, 6)}`
310+
let { result } = await addNewInstanceToDB(userId, instanceId)
311311
let instance = await env.MY_WORKFLOW.create({
312312
id: userId,
313313
params: payload

0 commit comments

Comments
 (0)