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 8743135 commit 5952eefCopy full SHA for 5952eef
src/content/docs/workflows/build/rules-of-workflows.mdx
@@ -306,8 +306,8 @@ export default {
306
let instanceId = getTransactionId() // e.g. assuming transaction IDs are unique
307
// or: compose a composite ID and store it in your database
308
// 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)
+ instanceId = `${getUserId(request)}-${await crypto.randomUUID().slice(0, 6)}`
+ let { result } = await addNewInstanceToDB(userId, instanceId)
311
let instance = await env.MY_WORKFLOW.create({
312
id: userId,
313
params: payload
0 commit comments