docs: Fix typos in productsCreated hook (#11276)

This commit is contained in:
Martin Repta authored and GitHub committed 2025-02-12 18:37:34 +02:00
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 })