forked from External/greenlight
Fixed 500 if user has no rooms in Latest Recordings (#2600)
This commit is contained in:
parent
79beb7f3fa
commit
6b7f9e0831
|
@ -61,7 +61,7 @@ module Populator
|
||||||
if user.present?
|
if user.present?
|
||||||
# Find user and get his recordings
|
# Find user and get his recordings
|
||||||
rooms = User.find_by(email: user)&.rooms&.pluck(:bbb_id)
|
rooms = User.find_by(email: user)&.rooms&.pluck(:bbb_id)
|
||||||
return all_recordings(rooms) if user.present?
|
return all_recordings(rooms) if user.present? && !rooms.nil?
|
||||||
|
|
||||||
[] # return no recs if room not found
|
[] # return no recs if room not found
|
||||||
elsif room.present?
|
elsif room.present?
|
||||||
|
|
Loading…
Reference in New Issue