docs: rename data to event in subscribers across docs (#8149)
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user