update recording notify to work with new workflow

This commit is contained in:
Zachary Chai
2017-02-17 14:52:12 -05:00
parent dbfed8eba4
commit 63fbc27bca
4 changed files with 8 additions and 5 deletions

View File

@ -19,8 +19,10 @@ class RecordingCreatedJob < ApplicationJob
queue_as :default
def perform(room, recording)
def perform(token, room, recording)
ActionCable.server.broadcast "#{room}_recording_updates_channel",
{ action: 'create' }.merge(recording)
ActionCable.server.broadcast "#{token}_recording_updates_channel",
{ action: 'create' }.merge(recording)
end
end