forked from External/greenlight
Fix error with missing last session (#2721)
In some cases when you create a new room there is a missing last session. This throws an error. This check fixes that error.
This commit is contained in:
parent
e62c86c898
commit
3a4497d1a1
|
@ -54,7 +54,7 @@ module BbbServer
|
|||
join_opts = {}
|
||||
join_opts[:userID] = uid if uid
|
||||
join_opts[:join_via_html5] = true
|
||||
join_opts[:createTime] = room.last_session.to_datetime.strftime("%Q")
|
||||
join_opts[:createTime] = room.last_session.to_datetime.strftime("%Q") if room.last_session
|
||||
|
||||
bbb_server.join_meeting_url(room.bbb_id, name, password, join_opts)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue