remove action cable comment

This commit is contained in:
phyusin
2018-05-23 17:28:41 +06:30
parent 06ef27e2a3
commit 770ef87678

View File

@@ -337,12 +337,12 @@ class Origami::SplitBillController < BaseOrigamiController
end
Promotion.promo_activate(sale)
# if ENV["SERVER_MODE"] == 'cloud'
# from = request.subdomain + "." + request.domain
# else
# from = ""
# end
# ActionCable.server.broadcast "bill_channel",table: table,from:from
if ENV["SERVER_MODE"] == 'cloud'
from = request.subdomain + "." + request.domain
else
from = ""
end
ActionCable.server.broadcast "bill_channel",table: table,from:from
render :json => { status: status }
else