Skip to content

Commit d99f2c2

Browse files
authored
Update rules-of-workflows.mdx
Renamed mistyped `request` (not defined) to `req`
1 parent 939dd2b commit d99f2c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ export default {
403403
let instanceId = getTransactionId() // e.g. assuming transaction IDs are unique
404404
// or: compose a composite ID and store it in your database
405405
// so that you can track all instances associated with a specific user or merchant.
406-
instanceId = `${getUserId(request)}-${await crypto.randomUUID().slice(0, 6)}`
406+
instanceId = `${getUserId(req)}-${await crypto.randomUUID().slice(0, 6)}`
407407
let { result } = await addNewInstanceToDB(userId, instanceId)
408408
let goodInstance = await env.MY_WORKFLOW.create({
409409
id: userId,

0 commit comments

Comments
 (0)