From d99f2c29c49902ca0665f7540b87c9b4e4ba818d Mon Sep 17 00:00:00 2001 From: Rocco Ghielmini Date: Fri, 18 Apr 2025 17:18:00 +0200 Subject: [PATCH 1/3] Update rules-of-workflows.mdx Renamed mistyped `request` (not defined) to `req` --- src/content/docs/workflows/build/rules-of-workflows.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workflows/build/rules-of-workflows.mdx b/src/content/docs/workflows/build/rules-of-workflows.mdx index 9a6b0fa4e37da45..8a9fc327065c0db 100644 --- a/src/content/docs/workflows/build/rules-of-workflows.mdx +++ b/src/content/docs/workflows/build/rules-of-workflows.mdx @@ -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, From de2950fab9ede8e6fbf5e958c8853a16f05fa73e Mon Sep 17 00:00:00 2001 From: Jun Lee Date: Tue, 12 Aug 2025 09:50:31 +0100 Subject: [PATCH 2/3] Triggering GH compiles --- src/content/docs/workflows/build/rules-of-workflows.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workflows/build/rules-of-workflows.mdx b/src/content/docs/workflows/build/rules-of-workflows.mdx index 8a9fc327065c0db..f4ad14bd3d80ad4 100644 --- a/src/content/docs/workflows/build/rules-of-workflows.mdx +++ b/src/content/docs/workflows/build/rules-of-workflows.mdx @@ -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(req)}-${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, From 54d49ffaae3410010c94681cf344442617b73d65 Mon Sep 17 00:00:00 2001 From: Jun Lee Date: Tue, 12 Aug 2025 09:50:44 +0100 Subject: [PATCH 3/3] Update src/content/docs/workflows/build/rules-of-workflows.mdx --- src/content/docs/workflows/build/rules-of-workflows.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workflows/build/rules-of-workflows.mdx b/src/content/docs/workflows/build/rules-of-workflows.mdx index f4ad14bd3d80ad4..8a9fc327065c0db 100644 --- a/src/content/docs/workflows/build/rules-of-workflows.mdx +++ b/src/content/docs/workflows/build/rules-of-workflows.mdx @@ -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(req)}-${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,