close cable in cloud mode

This commit is contained in:
Aung Myo
2018-04-23 15:39:56 +06:30
parent f503d69181
commit 6e3a5300a6
8 changed files with 35 additions and 15 deletions

View File

@@ -47,7 +47,9 @@ class Api::BillController < Api::ApiController
Promotion.promo_activate(@sale)
#BillBroadcastJob.perform_later(table)
ActionCable.server.broadcast "bill_channel",table: table
if ENV["SERVER_MODE"] != 'cloud'
ActionCable.server.broadcast "bill_channel",table: table
end
else
@status = false
@error_message = "No Current Open Shift"