update
This commit is contained in:
@@ -4,8 +4,9 @@ class OrderQueueProcessorJob < ApplicationJob
|
||||
def perform(order_id, table_id)
|
||||
# Do something later
|
||||
#Order ID
|
||||
order = Order.find(order_id)
|
||||
|
||||
order = Order.find(order_id)
|
||||
ActionCable.server.broadcast "order_queue_station_channel",message: order
|
||||
#Loop through the order stations and process the items
|
||||
#Execute orders and send to order stations
|
||||
if order
|
||||
@@ -13,5 +14,8 @@ class OrderQueueProcessorJob < ApplicationJob
|
||||
oqs.process_order(order, table_id)
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user