Customer-Groups: workflow hooks / emit events #11699
JohnGemstone
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all I've come to a dead end where I cant send a notification to a customer when they've been added to a customer-group.
Could we add some workflow hooks or add an emit step?
https://github.com/medusajs/medusa/blob/develop/packages/core/utils/src/core-flows/events.ts
https://github.com/medusajs/medusa/blob/develop/packages/core/core-flows/src/customer-group/workflows/link-customer-groups-customer.ts
Maybe we could have a generic hook added to all workflows which returns whatever is in workflow's response?
e.g.
linkCustomerGroupsToCustomerWorkflow.hooks.completedCheers!
Beta Was this translation helpful? Give feedback.
All reactions