diff --git a/app/controllers/api/bill_controller.rb b/app/controllers/api/bill_controller.rb index 4b58e52d..387b7bf8 100755 --- a/app/controllers/api/bill_controller.rb +++ b/app/controllers/api/bill_controller.rb @@ -46,8 +46,7 @@ class Api::BillController < Api::ApiController Promotion.promo_activate(@sale) - #BillBroadcastJob.perform_later(table) - ActionCable.server.broadcast "bill_channel",table: table + BillBroadcastJob.perform_later(table) else @status = false @error_message = "No Current Open Shift" diff --git a/app/models/dining_facility.rb b/app/models/dining_facility.rb index c4da3475..b8386d88 100755 --- a/app/models/dining_facility.rb +++ b/app/models/dining_facility.rb @@ -157,4 +157,5 @@ class DiningFacility < ApplicationRecord #Send to background job for processing CheckInBookingJob.perform_later(table) end + end