1
0
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:
Du Peng 2022-10-18 09:56:43 +02:00
parent 48de0f8b9e
commit 3f7b8317e7

View File

@ -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')