add quick leads
All checks were successful
Build and Publish / build-release (push) Successful in 2m13s
All checks were successful
Build and Publish / build-release (push) Successful in 2m13s
This commit is contained in:
@@ -4,12 +4,20 @@ defmodule CustomerService.Router do
|
||||
alias CustomerService.Aggregates
|
||||
|
||||
identify(Aggregates.Customer, by: :id)
|
||||
dispatch([Commands.CreateCustomer], to: Aggregates.Customer)
|
||||
dispatch([Commands.CreateCustomer, Commands.UpdateCustomer], to: Aggregates.Customer)
|
||||
|
||||
dispatch(Commands.CreateCorporateCustomer,
|
||||
dispatch(
|
||||
[Commands.CreateCorporateCustomer, Commands.UpdateCorporateCustomer],
|
||||
to: Aggregates.CorporateCustomer,
|
||||
identity: :id
|
||||
)
|
||||
|
||||
identify(Aggregates.QuickLead, by: :id)
|
||||
|
||||
dispatch(
|
||||
[Commands.CreateQuickLead, Commands.UpdateQuickLead, Commands.UpdateLeadStatus],
|
||||
to: Aggregates.QuickLead
|
||||
)
|
||||
end
|
||||
|
||||
defmodule CustomerService.CommandedApp do
|
||||
|
||||
Reference in New Issue
Block a user