You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having some trouble with Medusa 2.12.5. I'm trying to listen out for an event when a product is assigned to a category, but nothing seems to be happening.
Having taken a look at the source, I noticed that upsertProducts in product-module-service.ts has the @EmitEvent decorator. I expected to see product.updated (or something similar) in my terminal logs when the categories changed, but there's been no activity. (also subscriber doesn't run)
Is this expected behaviour for v2, or should I be looking for a specific event for the Link Module instead?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm having some trouble with Medusa 2.12.5. I'm trying to listen out for an event when a product is assigned to a category, but nothing seems to be happening.
Having taken a look at the source, I noticed that upsertProducts in product-module-service.ts has the @EmitEvent decorator. I expected to see product.updated (or something similar) in my terminal logs when the categories changed, but there's been no activity. (also subscriber doesn't run)
Is this expected behaviour for v2, or should I be looking for a specific event for the Link Module instead?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions