File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
rails_application/app/services Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ def call
2222 unavailable_products = [ ]
2323 event_store
2424 . within { submit_order }
25- . subscribe ( to : Processes :: ReservationProcessFailed ) do |event |
26- unavailable_products = Products ::Product . where ( id : event . data . fetch ( :unavailable_products ) ) . pluck ( :name )
25+ . subscribe ( to : Pricing :: OfferRejected ) do |event |
26+ unavailable_products = Products ::Product . where ( id : event . data . fetch ( :unavailable_product_ids ) ) . pluck ( :name )
2727 end
2828 . call
2929
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ def call
2121 unavailable_products = [ ]
2222 event_store
2323 . within { submit_order }
24- . subscribe ( to : Processes :: ReservationProcessFailed ) do |event |
25- unavailable_products = Products ::Product . where ( id : event . data . fetch ( :unavailable_products ) ) . pluck ( :name )
24+ . subscribe ( to : Pricing :: OfferRejected ) do |event |
25+ unavailable_products = Products ::Product . where ( id : event . data . fetch ( :unavailable_product_ids ) ) . pluck ( :name )
2626 end
2727 . call
2828
You can’t perform that action at this time.
0 commit comments