Skip to content

Commit

Permalink
fix exception name
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejkrzywda committed Jul 12, 2023
1 parent 36ce8cb commit f6468e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecommerce/pricing/lib/pricing/services.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def call(command)
@repository.with_aggregate(Order, command.aggregate_id) do |order|
order.calculate_total_value(PricingCatalog.new(@event_store), time_promotions_discount)
end
rescue WrongExpectedEventVersion
rescue RubyEventStore::WrongExpectedEventVersion
retry
end

Expand All @@ -133,7 +133,7 @@ def calculate_sub_amounts(command)
@repository.with_aggregate(Order, command.aggregate_id) do |order|
order.calculate_sub_amounts(PricingCatalog.new(@event_store), time_promotions_discount)
end
rescue WrongExpectedEventVersion
rescue RubyEventStore::WrongExpectedEventVersion
retry
end

Expand Down

0 comments on commit f6468e7

Please sign in to comment.