docs-util: fix generated hooks example (#9060)
Fix generated hook examples by the placement of `async` keyword
This commit is contained in:
1 parent
abb5f0c2fe
commit
6e46baa2cb
1 file changed
+1
-1
@@ -173,7 +173,7 @@ export default class Helper {
|
|||||||
}): string {
|
}): string {
|
||||||
let str = `import { ${workflowName} } from "@medusajs/core-flows"\n\n`
|
let str = `import { ${workflowName} } from "@medusajs/core-flows"\n\n`
|
||||||
|
|
||||||
str += `${workflowName}.hooks.${hookName}(\n\tasync (({`
|
str += `${workflowName}.hooks.${hookName}(\n\t(async ({`
|
||||||
|
|
||||||
if (
|
if (
|
||||||
parameter.type?.type === "reference" &&
|
parameter.type?.type === "reference" &&
|
||||||
|
|||||||
Reference in new issue
Block a user