update payment action cable

This commit is contained in:
Aung Myo
2018-01-25 15:33:52 +06:30
parent b3905a461e
commit 142bac74a8
5 changed files with 24 additions and 11 deletions

View File

@@ -285,8 +285,9 @@ class Order < ApplicationRecord
#send order items and send to order queue
def send_order_broadcast(booking)
table = DiningFacility.find(booking.dining_facility_id)
type = 'order'
#Send to background job for processing
OrderBroadcastJob.perform_later(table)
OrderBroadcastJob.perform_later(table,type)
end
#Origami: Cashier : to view order Table