docs: change event payload handling in subscribers (#8078)

This commit is contained in:
Shahed Nasser
2024-07-11 13:34:24 +03:00
committed by GitHub
parent 143847ace4
commit 02add3f0f5
8 changed files with 33 additions and 11 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ To execute the workflow, invoke it passing the Medusa container as a parameter.
data,
container,
}: SubscriberArgs<{ id: string }>) {
const userId = "data" in data ? data.data.id : data.id
const userId = data.data.id
const userModuleService: IUserModuleService = container.resolve(
ModuleRegistrationName.USER
)