forked from External/greenlight
Fix for when User with encrypted_id is not found
This commit is contained in:
parent
520aacf302
commit
a9ff1c7d9a
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue