room updates in job

This commit is contained in:
Zachary Chai
2016-11-15 16:44:22 -05:00
parent c79ae3c1d6
commit f35012a5f2
3 changed files with 16 additions and 3 deletions

View File

@ -29,9 +29,7 @@ class BbbController < ApplicationController
)
if bbb_res[:returncode] && current_user && current_user == user
ActionCable.server.broadcast "#{user.encrypted_id}_meeting_updates_channel",
action: 'moderator_joined',
moderator: 'joined'
JoinMeetingJob.perform_later(user.encrypted_id)
end
render_bbb_response bbb_res, bbb_res[:response]