update order for oqs

This commit is contained in:
Yan
2017-06-16 18:55:14 +06:30
parent 741a7d0d64
commit 0a496f2274
3 changed files with 17 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
class OrderQueueProcessorJob < ApplicationJob
queue_as :default
def perform(order_id)
def perform(order_id, table_id)
# Do something later
#Order ID
order = Order.find(order_id)
@@ -10,7 +10,7 @@ class OrderQueueProcessorJob < ApplicationJob
#Execute orders and send to order stations
if order
oqs = OrderQueueStation.new
oqs.process_order(order)
oqs.process_order(order, table_id)
end
end