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

@@ -607,7 +607,9 @@ class SalePayment < ApplicationRecord
type = 'payment'
#Send to background job for processing
# OrderBroadcastJob.perform_later(table,type)
ActionCable.server.broadcast "order_channel",table: table,type:type
if ENV["SERVER_MODE"] != 'cloud'
ActionCable.server.broadcast "order_channel",table: table,type:type
end
end
end
end