docs: change event payload handling in subscribers (#8078)
This commit is contained in:
1 parent
143847ace4
commit
02add3f0f5
8 files changed
+33
-11
No files matched your search
@@ -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
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user