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
+2 -2
View File
@@ -130,10 +130,10 @@ To execute the workflow, invoke it passing the Medusa container as a parameter.
import { IUserModuleService } from "@medusajs/types"
export default async function handleCustomerCreate({
data,
event: { data },
container,
}: SubscriberArgs<{ id: string }>) {
const userId = data.data.id
const userId = data.id
const userModuleService: IUserModuleService = container.resolve(
ModuleRegistrationName.USER
)