docs: fixes to customization docs (#9236)

Closes #9225, #9224, #9226, #9227

Closes DOCS-948, DOCS-947, DOCS-945, DOCS-946
This commit is contained in:
Shahed Nasser
2024-09-26 13:00:37 +00:00
committed by GitHub
parent 474ba92d48
commit ea2cc974cc
10 changed files with 53 additions and 45 deletions
@@ -73,10 +73,10 @@ export default defineMiddlewares({
method: "POST",
matcher: "/admin/products",
additionalDataValidator: {
brand: z.string().optional()
}
}
]
brand: z.string().optional(),
},
},
],
})
```
@@ -154,14 +154,14 @@ createProductsWorkflow.hooks.productsCreated(
...product,
metadata: {
...product.metadata,
brand: additional_data.brand
}
brand: additional_data.brand,
},
}))
)
return new StepResponse(products, {
products,
additional_data
additional_data,
})
}
)