Skip to content

Commit

Permalink
Remove async from customer module
Browse files Browse the repository at this point in the history
Same reason as in previous commits.
  • Loading branch information
lukaszreszke committed Sep 4, 2023
1 parent 48e58d6 commit 1e6f893
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rails_application/app/read_models/customers/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ class Customer < ApplicationRecord

class Configuration
def call(event_store)
event_store.subscribe(RegisterCustomer, to: [Crm::CustomerRegistered])
event_store.subscribe(PromoteToVip, to: [Crm::CustomerPromotedToVip])
event_store.subscribe(UpdatePaidOrdersSummary, to: [Ordering::OrderConfirmed])
event_store.subscribe(ConnectAccount, to: [Authentication::AccountConnectedToClient])
event_store.subscribe(RegisterCustomer.new, to: [Crm::CustomerRegistered])
event_store.subscribe(PromoteToVip.new, to: [Crm::CustomerPromotedToVip])
event_store.subscribe(UpdatePaidOrdersSummary.new, to: [Ordering::OrderConfirmed])
event_store.subscribe(ConnectAccount.new, to: [Authentication::AccountConnectedToClient])
end
end
end

0 comments on commit 1e6f893

Please sign in to comment.