docs: Fix typos in productsCreated hook (#11276)
This commit is contained in:
1 parent
d9946e679d
commit
1b6d8b9f7a
3 files changed
+7
-7
No files matched your search
@@ -85,8 +85,8 @@ For example:
|
||||
```ts title="src/workflows/hooks/product-created.ts"
|
||||
import { createProductsWorkflow } from "@medusajs/medusa/core-flows"
|
||||
|
||||
createProductsWorkflow.hooks.productCreated(
|
||||
async ({ productId }, { container }) => {
|
||||
createProductsWorkflow.hooks.productsCreated(
|
||||
async ({ products }, { container }) => {
|
||||
// TODO perform an action
|
||||
|
||||
return new StepResponse(undefined, { ids })
|
||||
|
||||
Reference in new issue
Block a user