update payment action cable

This commit is contained in:
Aung Myo
2018-01-25 15:33:52 +06:30
parent b3905a461e
commit 142bac74a8
5 changed files with 24 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
class OrderBroadcastJob < ApplicationJob
queue_as :default
def perform(table)
ActionCable.server.broadcast "order_channel",table: table
def perform(table,type)
ActionCable.server.broadcast "order_channel",table: table,type:type
end
end