mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
(bug) update order status error
This commit is contained in:
parent
48de0f8b9e
commit
3f7b8317e7
@ -46,6 +46,8 @@ class Orders::OrderService
|
||||
# update in elasticsearch (statistics)
|
||||
stat_order = Stats::Order.search(query: { term: { orderId: order.id } })
|
||||
stat_order.map { |s| s.update(state: state) }
|
||||
|
||||
order
|
||||
end
|
||||
|
||||
def in_stock?(order, stock_type = 'external')
|
||||
|
Loading…
Reference in New Issue
Block a user