From 3f584edbd886d40cffda03f01f1be85a657b8281 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Thu, 1 Feb 2018 11:08:34 +0630 Subject: [PATCH] udpate remove call waiter jon --- app/controllers/api/call_waiters_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/api/call_waiters_controller.rb b/app/controllers/api/call_waiters_controller.rb index 7cf80a5d..bfb1023a 100644 --- a/app/controllers/api/call_waiters_controller.rb +++ b/app/controllers/api/call_waiters_controller.rb @@ -5,8 +5,7 @@ class Api::CallWaitersController < ActionController::API @table_id = params[:dining_id] @time = params[:time] @table = DiningFacility.find(@table_id) - # CallWaiterJob.perform_later(@table,@time) - ActionCable.server.broadcast "call_waiter_channel",table: @table,time:@time + CallWaiterJob.perform_later(@table,@time) # get printer info @shop = Shop::ShopDetail