update cable for cloud

This commit is contained in:
Aung Myo
2018-04-25 13:18:54 +06:30
parent d0ad95c8d6
commit 9b0a564b9a
10 changed files with 26 additions and 28 deletions

View File

@@ -39,9 +39,9 @@ class Origami::RequestBillsController < ApplicationController
# Promotion Activation
Promotion.promo_activate(@sale)
#bill channel
if ENV["SERVER_MODE"] != 'cloud'
#if ENV["SERVER_MODE"] != 'cloud'
ActionCable.server.broadcast "bill_channel",table: table
end
#end
if order.source == "quick_service"
result = {:status=> @status, :data => @sale.sale_id }
render :json => result.to_json