Skip to content

Commit 0c0f8bb

Browse files
authored
Update rules-of-workflows.mdx (#18731)
1 parent 1a3c815 commit 0c0f8bb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ export default {
302302
params: payload
303303
});
304304

305-
// ✅ Good: use a composite ID or an
305+
// ✅ Good: use an ID that is unique
306+
// e.g. a transaction ID, order ID, or task ID are good options
306307
let instanceId = getTransactionId() // e.g. assuming transaction IDs are unique
307308
// or: compose a composite ID and store it in your database
308309
// so that you can track all instances associated with a specific user or merchant.
@@ -314,8 +315,8 @@ export default {
314315
});
315316

316317
return Response.json({
317-
id: badInstance.id,
318-
details: await badInstance.status(),
318+
id: goodInstance.id,
319+
details: await goodInstance.status(),
319320
});
320321
},
321322
};

0 commit comments

Comments
 (0)