Author: Hugo Melo <hugo@riseup.net>
orders_cycle/sale: fix concurrency problem with removing products
plugins/orders_cycle/models/orders_cycle_plugin/sale.rb | 1 +
diff --git a/plugins/orders_cycle/models/orders_cycle_plugin/sale.rb b/plugins/orders_cycle/models/orders_cycle_plugin/sale.rb index 63be8f09f2d4a70c61bede8f9bc7bf9778b3e463..63f3028bbfe1e49e007f460486b2a7f0fda6e9de 100644 --- a/plugins/orders_cycle/models/orders_cycle_plugin/sale.rb +++ b/plugins/orders_cycle/models/orders_cycle_plugin/sale.rb @@ -101,5 +101,6 @@ purchase.destroy if purchase.items(true).blank? end handle_asynchronously :add_purchases_items + handle_asynchronously :remove_purchases_items end