Fix for when User with encrypted_id is not found

This commit is contained in:
Erick Kad-Bay 2016-12-19 15:44:58 -05:00
parent 520aacf302
commit a9ff1c7d9a
1 changed files with 2 additions and 2 deletions

View File

@ -54,11 +54,11 @@ class BbbController < ApplicationController
# the user can join the meeting # the user can join the meeting
if bbb_res[:returncode] && current_user && current_user == user if bbb_res[:returncode] && current_user && current_user == user
JoinMeetingJob.perform_later(user.encrypted_id) JoinMeetingJob.perform_later(params[:id])
# user will be waiting for a moderator # user will be waiting for a moderator
else else
NotifyUserWaitingJob.perform_later(user.encrypted_id, params[:name]) NotifyUserWaitingJob.perform_later(params[:id], params[:name])
end end
render_bbb_response bbb_res, bbb_res[:response] render_bbb_response bbb_res, bbb_res[:response]