-
Notifications
You must be signed in to change notification settings - Fork 321
Description
Summary
Introduce events directly tied to the Seller module - not the Requests module only - to for example, make a new seller.created event that is emitted immediately after a seller is successfully created in the createSellerWorkflow.
Problem Solved
Currently, the requests.seller.accepted event is triggered when a seller request is approved. However, this event fires before the actual seller entity is created in the database (it triggers the workflow that creates the seller). This sequence makes it impossible to perform downstream actions that require the seller entity to exist (e.g., assigning specific attributes, syncing with external systems that need the seller ID, or creating related resources) within consumers of requests.seller.accepted without adding a hacky solution.
Solution
Added a potential solution PR 626.