app/controllers/spree/api/base_controller.rb in solidus_api-1.1.3 vs app/controllers/spree/api/base_controller.rb in solidus_api-1.1.4
- old
+ new
@@ -149,10 +149,10 @@
@order = Spree::Order.find_by(number: order_id)
authorize! :read, @order, order_token
end
def lock_order
- OrderMutex.with_lock!(@order) { yield }
+ Spree::OrderMutex.with_lock!(@order) { yield }
rescue Spree::OrderMutex::LockFailed => e
render text: e.message, status: 409
end
def insufficient_stock_error(exception)