docs: rename data to event in subscribers across docs (#8149)

This commit is contained in:
Shahed Nasser
2024-07-16 17:12:05 +01:00
committed by GitHub
parent f579f0b3be
commit f73ca97ecc
7 changed files with 38 additions and 38 deletions
@@ -264,12 +264,13 @@ export const workflowHighlights = [
import createProductWorkflow from "../workflows/create-product"
export default async function handleProductUpdate({
data, container
event: { data },
container
}: SubscriberArgs<{id: string}>) {
createProductWorkflow(container)
.run({
input: {
productId: data.data.id
productId: data.id
}
})
.then(() => {