update cable for cloud
This commit is contained in:
@@ -607,9 +607,9 @@ class SalePayment < ApplicationRecord
|
||||
type = 'payment'
|
||||
#Send to background job for processing
|
||||
# OrderBroadcastJob.perform_later(table,type)
|
||||
if ENV["SERVER_MODE"] != 'cloud'
|
||||
#if ENV["SERVER_MODE"] != 'cloud'
|
||||
ActionCable.server.broadcast "order_channel",table: table,type:type
|
||||
end
|
||||
#end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user